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 00c50a2 commit 3aec1f8Copy full SHA for 3aec1f8
libavcodec/ffv1enc.c
@@ -569,7 +569,7 @@ int ff_ffv1_encode_determine_slices(AVCodecContext *avctx)
569
int max_v_slices = AV_CEIL_RSHIFT(avctx->height, s->chroma_v_shift);
570
s->num_v_slices = (avctx->width > 352 || avctx->height > 288 || !avctx->slices) ? 2 : 1;
571
s->num_v_slices = FFMIN(s->num_v_slices, max_v_slices);
572
- for (; s->num_v_slices < 32; s->num_v_slices++) {
+ for (; s->num_v_slices <= 32; s->num_v_slices++) {
573
for (s->num_h_slices = s->num_v_slices; s->num_h_slices <= 2*s->num_v_slices; s->num_h_slices++) {
574
int maxw = (avctx->width + s->num_h_slices - 1) / s->num_h_slices;
575
int maxh = (avctx->height + s->num_v_slices - 1) / s->num_v_slices;
0 commit comments