diff options
author | Ritu Baldwa <ritu.baldwa@ittiam.com> | 2018-01-16 13:48:41 +0530 |
---|---|---|
committer | Moritz Horstmann <dev@peterzweg.at> | 2018-04-06 16:08:04 +0200 |
commit | c75adf731fa133d7e08d079e0b9518bd890eb182 (patch) | |
tree | 0a99a97e8f68fa23ac3b678d1cdccef25cc2a9da | |
parent | da8176d4be754d9e1f9e1276415ccd5d43bfa386 (diff) | |
download | android_external_libavc-c75adf731fa133d7e08d079e0b9518bd890eb182.tar.gz android_external_libavc-c75adf731fa133d7e08d079e0b9518bd890eb182.tar.bz2 android_external_libavc-c75adf731fa133d7e08d079e0b9518bd890eb182.zip |
Decoder: Set prev slice type for I slice.
Fixed initialization of u1_pr_sl_type for I slice.
Bug: 70897454
Test: ran PoC before/after patch
Change-Id: I0c37317513b72236be98c2b25482a67bf2b56052
(cherry picked from commit aecdfd1aff2505da11ad48ad4f9f918054ce0c97)
(cherry picked from commit 3e3e81ede5229c5a9c6b7bf6a63844ecf07ae3ae)
-rw-r--r-- | decoder/ih264d_parse_slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ih264d_parse_slice.c b/decoder/ih264d_parse_slice.c index 609c2fe..db02bfe 100644 --- a/decoder/ih264d_parse_slice.c +++ b/decoder/ih264d_parse_slice.c @@ -1826,7 +1826,7 @@ WORD32 ih264d_parse_decode_slice(UWORD8 u1_is_idr_slice, ps_dec->ps_cur_pic->u4_pack_slc_typ |= I_SLC_BIT; ret = ih264d_parse_islice(ps_dec, u2_first_mb_in_slice); - + ps_dec->u1_pr_sl_type = u1_slice_type; if(ps_dec->i4_pic_type != B_SLICE && ps_dec->i4_pic_type != P_SLICE) ps_dec->i4_pic_type = I_SLICE; |