Increase ffmpeg intermediate conversion buffer size to accomodate PPM/PNM header.
authorPeter Ross <pross@xvid.org>
Sun, 22 Feb 2009 00:58:51 +0000 (00:58 +0000)
committerPeter Ross <pross@xvid.org>
Sun, 22 Feb 2009 00:58:51 +0000 (00:58 +0000)
Originally committed as revision 17512 to svn://svn.ffmpeg.org/ffmpeg/trunk

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);
         }
     }