Increase ffmpeg intermediate conversion buffer size to accomodate 48-bit RGB rawvideo
authorPeter Ross <pross@xvid.org>
Sun, 22 Feb 2009 01:00:28 +0000 (01:00 +0000)
committerPeter Ross <pross@xvid.org>
Sun, 22 Feb 2009 01:00:28 +0000 (01:00 +0000)
images.

Originally committed as revision 17513 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 1e764e5..3c5e333 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 + 200);
+            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
         }
     }