diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2017-05-23 11:53:52 +0530 |
---|---|---|
committer | MSe <mse1969@posteo.de> | 2017-08-31 21:25:41 +0200 |
commit | 9f973752220e1e7b8d9379d02cb2b24c75b0f41b (patch) | |
tree | 87d6b0976d5e1f1cc473273cadab5d425540a061 /decoder/ih264d_api.c | |
parent | 19928d402da412925098fc24e3c5c566de5d1869 (diff) | |
download | android_external_libavc-9f973752220e1e7b8d9379d02cb2b24c75b0f41b.tar.gz android_external_libavc-9f973752220e1e7b8d9379d02cb2b24c75b0f41b.tar.bz2 android_external_libavc-9f973752220e1e7b8d9379d02cb2b24c75b0f41b.zip |
Initializing reference list for every P/B slice.
Reference list needs to be initialized for every P/B
slice, to ensure colocated picture always points to a
valid picture buffer, even in the case of error.
Bug: 36279112
Change-Id: I051d7e725b0af209cc7bb333db8da3518adf78a0
(cherry picked from commit f9d3f9af8fc113acda28e1a4e48d85736ee29c75)
Diffstat (limited to 'decoder/ih264d_api.c')
-rw-r--r-- | decoder/ih264d_api.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c index fec7e62..02f622e 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -969,7 +969,6 @@ void ih264d_init_decoder(void * ps_dec_params) ps_dec->ps_cur_sps = NULL; ps_dec->u1_init_dec_flag = 0; ps_dec->u1_first_slice_in_stream = 1; - ps_dec->u1_first_pb_nal_in_pic = 1; ps_dec->u1_last_pic_not_decoded = 0; ps_dec->u4_app_disp_width = 0; ps_dec->i4_header_decoded = 0; @@ -1886,7 +1885,6 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) ps_dec->cur_dec_mb_num = 0; ps_dec->cur_recon_mb_num = 0; ps_dec->u4_first_slice_in_pic = 1; - ps_dec->u1_first_pb_nal_in_pic = 1; ps_dec->u1_slice_header_done = 0; ps_dec->u1_dangling_field = 0; |