diff options
author | Ritu Baldwa <ritu.baldwa@ittiam.com> | 2018-01-16 13:48:41 +0530 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-02-03 00:09:28 +0000 |
commit | 53c48c14d05812de7688f2423767df26878c69b5 (patch) | |
tree | 36d603464ee8b2742daf4dc2317c8cde25a786d6 | |
parent | 81d2ac706fc04de2d2a4123b7f75494540947947 (diff) | |
download | android_external_libavc-53c48c14d05812de7688f2423767df26878c69b5.tar.gz android_external_libavc-53c48c14d05812de7688f2423767df26878c69b5.tar.bz2 android_external_libavc-53c48c14d05812de7688f2423767df26878c69b5.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)
-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; |