]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Increase ffmpeg intermediate conversion buffer size to accomodate PPM/PNM header.
authorpross <pross@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Feb 2009 00:58:51 +0000 (00:58 +0000)
committerpross <pross@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Feb 2009 00:58:51 +0000 (00:58 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17512 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

ffmpeg.c

index 2b7408692ad3f5e5849f85d27696c785e9d22c3e..1e764e552e8ee5dc999193f2f5b300f7a75a3afe 100644 (file)
--- 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);
         }
     }