[vlc-devel] commit: Flush picture buffers when closing the avcodec decoder. ( Laurent Aimar )

git version control git at videolan.org
Mon Jun 1 12:46:51 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jun  1 11:54:50 2009 +0200| [f2f61bf1c7c58e79dcb22cada3eea53f596355cc] | committer: Laurent Aimar 

Flush picture buffers when closing the avcodec decoder.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2f61bf1c7c58e79dcb22cada3eea53f596355cc
---

 modules/codec/avcodec/video.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 8acbcaa..c57b0d3 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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 );
 }




More information about the vlc-devel mailing list