diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index c8dc9eb005..aa26b40e85 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -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 */