From 577525af3d492469edd54e1c86b4ba0bfc214048 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 1 Oct 2009 16:46:34 +0200 Subject: [PATCH] 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. --- ext/ffmpeg/gstffmpegenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index c8dc9eb..aa26b40 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 */ -- 2.7.4