mpeg1 files may have only one sequence header.
It can be backported to 1.0 only after being carefully tested.
if( !p_pic )
{
Reset( p_dec );
- block_Release( p_block );
- return NULL;
+
+ p_pic = DpbNewPicture( p_dec );
+ if( !p_pic )
+ {
+ mpeg2_reset( p_sys->p_mpeg2dec, 1 );
+ block_Release( p_block );
+ return NULL;
+ }
}
}
decoder_sys_t *p_sys = p_dec->p_sys;
cc_Flush( &p_sys->cc );
- mpeg2_reset( p_sys->p_mpeg2dec, p_sys->p_info->sequence != NULL );
+ mpeg2_reset( p_sys->p_mpeg2dec, 0 );
DpbClean( p_dec );
}