From 8c00a359d0f012014c2337bd45f03e4a549a00bd Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 8 Aug 2014 20:04:20 +1000 Subject: [PATCH] avviddec: After draining frames, flush the libav decoder Makes sure that there's really nothing stale left in the decoder after draining. https://bugzilla.gnome.org/show_bug.cgi?id=734661 --- ext/libav/gstavviddec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 3db0be1fad..a93f3d4bff 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -1451,6 +1451,7 @@ gst_ffmpegviddec_drain (GstFFMpegVidDec * ffmpegdec) if (len < 0 || have_data == 0) break; } while (try++ < 10); + avcodec_flush_buffers (ffmpegdec->context); } }