mirror of
https://github.com/ittiam-systems/libavc.git
synced 2026-10-09 10:22:17 +07:00
Fix in returning end of bitstream error for MBAFF am: 7950bf47b6
am: 73f74a84e1
Change-Id: Iac07d54ca71b79f6380c3f5c3d4106838bb76642
This commit is contained in:
commit
f23ebcfab1
2 changed files with 8 additions and 0 deletions
|
|
@ -869,6 +869,10 @@ WORD32 ih264d_parse_islice_data_cavlc(dec_struct_t * ps_dec,
|
||||||
if(u1_mbaff)
|
if(u1_mbaff)
|
||||||
{
|
{
|
||||||
ih264d_update_mbaff_left_nnz(ps_dec, ps_cur_mb_info);
|
ih264d_update_mbaff_left_nnz(ps_dec, ps_cur_mb_info);
|
||||||
|
if(!uc_more_data_flag && (0 == (i2_cur_mb_addr & 1)))
|
||||||
|
{
|
||||||
|
return ERROR_EOB_FLUSHBITS_T;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**************************************************************/
|
/**************************************************************/
|
||||||
/* Get next Macroblock address */
|
/* Get next Macroblock address */
|
||||||
|
|
|
||||||
|
|
@ -1348,6 +1348,10 @@ WORD32 ih264d_parse_inter_slice_data_cavlc(dec_struct_t * ps_dec,
|
||||||
if(u1_mbaff)
|
if(u1_mbaff)
|
||||||
{
|
{
|
||||||
ih264d_update_mbaff_left_nnz(ps_dec, ps_cur_mb_info);
|
ih264d_update_mbaff_left_nnz(ps_dec, ps_cur_mb_info);
|
||||||
|
if(!uc_more_data_flag && !i2_mb_skip_run && (0 == (i2_cur_mb_addr & 1)))
|
||||||
|
{
|
||||||
|
return ERROR_EOB_FLUSHBITS_T;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**************************************************************/
|
/**************************************************************/
|
||||||
/* Get next Macroblock address */
|
/* Get next Macroblock address */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue