Skip to content

Commit

Permalink
Flush picture buffers when closing the avcodec decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Aimar committed Jun 1, 2009
1 parent c6ce6df commit f2f61bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/codec/avcodec/video.c
Expand Up @@ -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 );
}
Expand Down

0 comments on commit f2f61bf

Please sign in to comment.