mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
ffmpegenc: Also add FF_MIN_BUFFER_SIZE to video buffers too
Just to make sure we never get below it in case of very small videos.
This commit is contained in:
parent
d9f6febe70
commit
577525af3d
1 changed files with 2 additions and 1 deletions
|
@ -643,7 +643,8 @@ static void
|
|||
ffmpegenc_setup_working_buf (GstFFMpegEnc * ffmpegenc)
|
||||
{
|
||||
guint wanted_size =
|
||||
ffmpegenc->context->width * ffmpegenc->context->height * 6 + 200;
|
||||
ffmpegenc->context->width * ffmpegenc->context->height * 6 +
|
||||
FF_MIN_BUFFER_SIZE;
|
||||
|
||||
/* Above is the buffer size used by ffmpeg/ffmpeg.c */
|
||||
|
||||
|
|
Loading…
Reference in a new issue