Commit 1a24f157 authored by David Flynn's avatar David Flynn Committed by Rémi Denis-Courmont

codec/schroedinger: don't reset decoder at corrupt block sentinel

Also, don't reset pts interpolator at discontinuity
Signed-off-by: default avatarDavid Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent d78d1a82
......@@ -300,11 +300,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
/* reset the decoder when seeking as the decode in progress is invalid */
/* discard the block as it is just a null magic block */
if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) {
if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY ) {
schro_decoder_reset( p_sys->p_schro );
p_sys->i_lastpts = -1;
block_Release( p_block );
*pp_block = NULL;
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment