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>
This commit is contained in:
Sebastian Dröge 2020-10-01 11:18:58 +03:00
parent 1d671c7b89
commit e30cef4129

View file

@ -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