mirror of https://git.ffmpeg.org/ffmpeg.git
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 d8289ff9a9
)
This commit is contained in:
parent
5681d74aaf
commit
6109974cd9
4
ffmpeg.c
4
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue