summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 16:13:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 16:43:30 +0200
commitd8289ff9a9a3d0af416e70a1c864e1c6ce095656 (patch)
treeef10f3d11079ce99bd7f67e550e63bef1f4bcb0c /ffmpeg.c
parent251345a3fe221d60e9b275567085f9475de68092 (diff)
downloadffmpeg-d8289ff9a9a3d0af416e70a1c864e1c6ce095656.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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6da97d24ae..fbb04937bc 100644
--- 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);
}
}