mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 05:55:07 +00:00
Increase ffmpeg video encoding buffer size to permit encoding of DPX images
The header generated by the DPX encoder is 1664 bytes.
This commit is contained in:
parent
c178fdeaec
commit
6408529b5d
3
ffmpeg.c
3
ffmpeg.c
@ -2300,8 +2300,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 */
|
||||
int size= codec->width * codec->height;
|
||||
bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
|
||||
bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 1664);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user