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:
Sebastian Dröge 2009-10-01 16:46:34 +02:00
parent d9f6febe70
commit 577525af3d

View file

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