Commit 4979e6d7 authored by Laurent Aimar's avatar Laurent Aimar

Flush avcodec on discontinuity.

It is needed to be sure that the first image displayed after a discontinuity
(flush or seek) is the right one.
parent 27e306df
......@@ -451,10 +451,10 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_sys->i_late_frames = 0;
block_Release( p_block );
if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY )
avcodec_flush_buffers( p_context );
//if( p_block->i_flags & BLOCK_FLAG_CORRUPTED )
//avcodec_flush_buffers( p_context );
block_Release( p_block );
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