ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Sep 2011 14:13:07 +0000 (16:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:27:48 +0000 (20:27 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d8289ff9a9a3d0af416e70a1c864e1c6ce095656)

ffmpeg.c

index 29060cf..29a337a 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2379,9 +2379,9 @@ static int transcode(AVFormatContext **output_files,
             }
         }
         if(codec->codec_type == AVMEDIA_TYPE_VIDEO){
-            /* maximum video buffer size is 6-bytes per pixel, plus DPX header size */
+            /* maximum video buffer size is 6-bytes per pixel, plus DPX header size (1664)*/
             int size= codec->width * codec->height;
-            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 1664);
+            bit_buffer_size= FFMAX(bit_buffer_size, 7*size + 10000);
         }
     }