summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRitu Baldwa <ritu.baldwa@ittiam.com>2018-01-16 13:48:41 +0530
committerTim Schumacher <timschumi@gmx.de>2018-04-06 19:44:55 +0200
commit7d18d3e1405e136ef7d27d0bdae500d96e620d1b (patch)
tree7683d3a3b73f446378df0005aeadad99f2c4e6ee
parent4241c27b0e879a3ae7fbf34693c88d620203e71a (diff)
downloadandroid_external_libavc-7d18d3e1405e136ef7d27d0bdae500d96e620d1b.tar.gz
android_external_libavc-7d18d3e1405e136ef7d27d0bdae500d96e620d1b.tar.bz2
android_external_libavc-7d18d3e1405e136ef7d27d0bdae500d96e620d1b.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ih264d_parse_slice.c b/decoder/ih264d_parse_slice.c
index 75bdf7c..cad589f 100644
--- a/decoder/ih264d_parse_slice.c
+++ b/decoder/ih264d_parse_slice.c
@@ -1828,7 +1828,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;