diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-10-01 11:18:58 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-10-01 11:18:58 +0300 |
commit | e30cef412942f945fe13e5d819fdddcf6915fd53 (patch) | |
tree | a16ae6751ee152c2c8b00291b0f9894b468afb69 /ext/libav/gstavvidenc.c | |
parent | 1d671c7b89989f94576590b118b68250d0c2931f (diff) | |
download | gst-libav-e30cef412942f945fe13e5d819fdddcf6915fd53.tar.gz |
avvidenc: Call avcodec_flush_buffers() after draining to allow accepting new input again
This is already done in all other codec elements.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/97>
Diffstat (limited to 'ext/libav/gstavvidenc.c')
-rw-r--r-- | ext/libav/gstavvidenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index ebc1a76..2616e8d 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -763,6 +763,7 @@ gst_ffmpegvidenc_flush_buffers (GstFFMpegVidEnc * ffmpegenc, gboolean send) if (ret != GST_FLOW_OK) break; } while (got_packet); + avcodec_flush_buffers (ffmpegenc->context); done: /* FFMpeg will return AVERROR_EOF if it's internal was fully drained |