diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2017-05-23 11:53:52 +0530 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-15 18:56:02 +0000 |
commit | 5d88b6e7fb3743989114658eec59498d25327e90 (patch) | |
tree | 10e8e4b0ba0fffdc9bcf31a5729b7ead62f2ae8d /decoder/ih264d_api.c | |
parent | b96c229fdf73227aca5c84031a5a87aa629bcb2e (diff) | |
download | android_external_libavc-5d88b6e7fb3743989114658eec59498d25327e90.tar.gz android_external_libavc-5d88b6e7fb3743989114658eec59498d25327e90.tar.bz2 android_external_libavc-5d88b6e7fb3743989114658eec59498d25327e90.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 640fdea..2cde456 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -1002,7 +1002,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; @@ -1919,7 +1918,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; |