diff options
author | Jan Schmidt <jan@centricular.com> | 2014-08-08 20:04:20 +1000 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2014-08-12 22:48:59 +1000 |
commit | 8c00a359d0f012014c2337bd45f03e4a549a00bd (patch) | |
tree | 0fec9f7e6ef8942de6fbe05b18124360df682332 /ext | |
parent | 1307b31e1cf9548ad3c9896fc0e9afe3d0516e40 (diff) |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libav/gstavviddec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 3db0be1..a93f3d4 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); } } |