Initialize DPB structures to valid values.
When the first frame is a B frame, the colocated picture will now point to the current frame. Test: run poc with and without this patch Bug: 38115076 Change-Id: I48a8f128740551d6a9252931dafcf8c629ecad0d
This commit is contained in:
parent
3f6c941de5
commit
b8d362561e
1 changed files with 13 additions and 1 deletions
|
|
@ -444,11 +444,23 @@ WORD32 ih264d_start_of_pic(dec_struct_t *ps_dec,
|
|||
ps_dec->au1_pic_buf_ref_flag[cur_pic_buf_id] = 0;
|
||||
|
||||
{
|
||||
/*make first entry of list0 point to cur pic,so that if first Islice is in error, ref pic struct will have valid entries*/
|
||||
/*make first entry of list0 and list1 point to cur pic,
|
||||
*so that if first slice is in error, ref pic struct will have valid entries*/
|
||||
ps_dec->ps_ref_pic_buf_lx[0] = ps_dec->ps_dpb_mgr->ps_init_dpb[0];
|
||||
ps_dec->ps_ref_pic_buf_lx[1] = ps_dec->ps_dpb_mgr->ps_init_dpb[1];
|
||||
*(ps_dec->ps_dpb_mgr->ps_init_dpb[0][0]) = *ps_cur_pic;
|
||||
/* Initialize for field reference as well */
|
||||
*(ps_dec->ps_dpb_mgr->ps_init_dpb[0][MAX_REF_BUFS]) = *ps_cur_pic;
|
||||
|
||||
*(ps_dec->ps_dpb_mgr->ps_mod_dpb[0][0]) = *ps_cur_pic;
|
||||
/* Initialize for field reference as well */
|
||||
*(ps_dec->ps_dpb_mgr->ps_mod_dpb[0][MAX_REF_BUFS]) = *ps_cur_pic;
|
||||
*(ps_dec->ps_dpb_mgr->ps_init_dpb[1][0]) = *ps_cur_pic;
|
||||
/* Initialize for field reference as well */
|
||||
*(ps_dec->ps_dpb_mgr->ps_init_dpb[1][MAX_REF_BUFS]) = *ps_cur_pic;
|
||||
*(ps_dec->ps_dpb_mgr->ps_mod_dpb[1][0]) = *ps_cur_pic;
|
||||
/* Initialize for field reference as well */
|
||||
*(ps_dec->ps_dpb_mgr->ps_mod_dpb[1][MAX_REF_BUFS]) = *ps_cur_pic;
|
||||
}
|
||||
|
||||
if(!ps_dec->ps_cur_pic)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue