Commit 2e5d041e authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Ilkka Ollakka

avcodec/video.c: do not drop good data on discontinuity but only on data corruption.

Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent de4be0a4
...@@ -522,8 +522,11 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -522,8 +522,11 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
avcodec_flush_buffers( p_context ); avcodec_flush_buffers( p_context );
wait_mt( p_sys ); wait_mt( p_sys );
block_Release( p_block ); if( p_block->i_flags & BLOCK_FLAG_CORRUPTED )
return NULL; {
block_Release( p_block );
return NULL;
}
} }
if( p_block->i_flags & BLOCK_FLAG_PREROLL ) if( p_block->i_flags & BLOCK_FLAG_PREROLL )
......
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