diff options
author | Ritu Baldwa <ritu.baldwa@ittiam.com> | 2018-01-16 13:48:41 +0530 |
---|---|---|
committer | JP Sugarbroad <jpsugar@google.com> | 2018-02-13 14:34:38 -0800 |
commit | c208fd7dcc0aebf6f3fe85de53cf9f66825a5188 (patch) | |
tree | 01ce6bda9284323729579168954a34a8286d4096 | |
parent | 093814793da87c14ff9e8370dc29dd6300629096 (diff) | |
download | android_external_libavc-c208fd7dcc0aebf6f3fe85de53cf9f66825a5188.tar.gz android_external_libavc-c208fd7dcc0aebf6f3fe85de53cf9f66825a5188.tar.bz2 android_external_libavc-c208fd7dcc0aebf6f3fe85de53cf9f66825a5188.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; |