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>
Sun, 25 Sep 2011 14:43:30 +0000 (16:43 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 6da97d2..fbb0493 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2218,9 +2218,9 @@ static int transcode_init(OutputFile *output_files, int nb_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);
         }
     }