mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
1d671c7b89
commit
e30cef4129
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue