Commit f2f61bf1 authored by Laurent Aimar's avatar Laurent Aimar

Flush picture buffers when closing the avcodec decoder.

parent c6ce6df8
......@@ -731,6 +731,8 @@ void EndVideoDec( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
avcodec_flush_buffers( p_sys->p_context );
if( p_sys->p_ff_pic ) av_free( p_sys->p_ff_pic );
free( p_sys->p_buffer_orig );
}
......
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