aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 16:13:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 20:27:48 +0200
commit6109974cd95cc75a72704029e5608beaaf6691d5 (patch)
tree2d4b59e4c8f80ce2ded22d6864abeedd74e4474a
parent5681d74aaf7e241303aa8785dcdc9b6b437e1573 (diff)
downloadffmpeg-6109974cd95cc75a72704029e5608beaaf6691d5.tar.gz
ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48 raw based formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d8289ff9a9a3d0af416e70a1c864e1c6ce095656)
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 29060cf025..29a337ac2d 100644
--- 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);
}
}