Commit d8289ff9 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48 raw based formats

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 251345a3
...@@ -2218,9 +2218,9 @@ static int transcode_init(OutputFile *output_files, int nb_output_files, ...@@ -2218,9 +2218,9 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
} }
} }
if(codec->codec_type == AVMEDIA_TYPE_VIDEO){ 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; 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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment