We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a90ff81 commit dcf6142Copy full SHA for dcf6142
libavcodec/ffv1enc.c
@@ -1249,6 +1249,8 @@ size_t ff_ffv1_encode_buffer_size(AVCodecContext *avctx)
1249
maxsize += f->slice_count * 800; //for slice header
1250
if (f->version > 3) {
1251
maxsize *= f->bits_per_raw_sample + 1;
1252
+ if (f->flt) //remap table
1253
+ maxsize += f->slice_count * 70000 * (1 + 2*f->chroma_planes + f->transparency);
1254
} else {
1255
maxsize += f->slice_count * 2 * (avctx->width + avctx->height); //for bug with slices that code some pixels more than once
1256
maxsize *= 8*(2*f->bits_per_raw_sample + 5);
0 commit comments