From befb5cac310f3736cacde0212b02154b22d988b5 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sun, 22 Feb 2009 00:58:51 +0000 Subject: [PATCH] Increase ffmpeg intermediate conversion buffer size to accomodate PPM/PNM header. Originally committed as revision 17512 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 2b7408692a..1e764e552e 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1897,7 +1897,7 @@ static int av_encode(AVFormatContext **output_files, } if(codec->codec_type == CODEC_TYPE_VIDEO){ int size= codec->width * codec->height; - bit_buffer_size= FFMAX(bit_buffer_size, 4*size); + bit_buffer_size= FFMAX(bit_buffer_size, 4*size + 200); } }