aboutsummaryrefslogtreecommitdiff
path: root/decoder/ih264d_process_bslice.c
diff options
context:
space:
mode:
authorHamsalekha S <hamsalekha.s@ittiam.com>2017-03-20 17:00:11 +0530
committerMarco Nelissen <marcone@google.com>2017-03-22 16:55:01 +0000
commit93954f5e9a5d727e402921ac6fa100e6dcc1d4e8 (patch)
tree96309f7adc82b7843777305399d1e5d0dd2f6ca5 /decoder/ih264d_process_bslice.c
parent78334b2a244d2a2560727a87fcbbf083467a256a (diff)
downloadlibavc-93954f5e9a5d727e402921ac6fa100e6dcc1d4e8.tar.gz
Decoder: Fix in reference list initialization.
In the case of error, initialize the new reference list1 with the first picture in default list0 instead of default list1, as first picture in list1 could still be invalid. Bug: 36035074 Change-Id: I7ab493ee7a157cbefcd4da8389ff1ff899c16b7f
Diffstat (limited to 'decoder/ih264d_process_bslice.c')
-rw-r--r--decoder/ih264d_process_bslice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/ih264d_process_bslice.c b/decoder/ih264d_process_bslice.c
index 4c5ee05..7784110 100644
--- a/decoder/ih264d_process_bslice.c
+++ b/decoder/ih264d_process_bslice.c
@@ -1494,7 +1494,7 @@ void ih264d_init_ref_idx_lx_b(dec_struct_t *ps_dec)
UWORD8 u1_i;
pic_buffer_t *ps_ref_pic;
- ps_ref_pic = ps_dpb_mgr->ps_init_dpb[1][0] + MAX_REF_BUFS;
+ ps_ref_pic = ps_dpb_mgr->ps_init_dpb[0][0] + MAX_REF_BUFS;
if(NULL == ps_ref_pic->pu1_buf1)
{
@@ -1521,7 +1521,7 @@ void ih264d_init_ref_idx_lx_b(dec_struct_t *ps_dec)
UWORD8 u1_i;
pic_buffer_t *ps_ref_pic;
- ps_ref_pic = ps_dpb_mgr->ps_init_dpb[1][0];
+ ps_ref_pic = ps_dpb_mgr->ps_init_dpb[0][0];
if(NULL == ps_ref_pic->pu1_buf1)
{