[vlc-commits] avcodec: put back avcodec_flush_buffers on pf_flush

Thomas Guillem git at videolan.org
Sun Dec 6 12:07:25 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Dec  6 10:55:12 2015 +0100| [432f9c4278afdb8f7d2e21763f96c6a27c45d9de] | committer: Thomas Guillem

avcodec: put back avcodec_flush_buffers on pf_flush

Fixes #15834

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

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

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index f746811..32d1406 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -502,14 +502,14 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
 static void Flush( decoder_t *p_dec )
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
+    AVCodecContext *p_context = p_sys->p_context;
 
     p_sys->i_pts = VLC_TS_INVALID; /* To make sure we recover properly */
     p_sys->i_late_frames = 0;
-#if 0
+
     post_mt( p_sys );
     avcodec_flush_buffers( p_context );
     wait_mt( p_sys );
-#endif
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list