From c027e91a744c5875a47e5d4bb2a0ff9b112d2e0f Mon Sep 17 00:00:00 2001
From: Peter Ross <pross@xvid.org>
Date: Sun, 22 Feb 2009 01:00:28 +0000
Subject: [PATCH] Increase ffmpeg intermediate conversion buffer size to
 accomodate 48-bit RGB rawvideo images.

Originally committed as revision 17513 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 1e764e552e8..3c5e333ac47 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 + 200);
+            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
         }
     }
 
-- 
GitLab