Skip to content

Commit 3aec1f8

Browse files
JeromeMartinezmichaelni
authored andcommitted
avcodec/ffv1enc: permit 1024 slices
Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 00c50a2 commit 3aec1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/ffv1enc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ int ff_ffv1_encode_determine_slices(AVCodecContext *avctx)
569569
int max_v_slices = AV_CEIL_RSHIFT(avctx->height, s->chroma_v_shift);
570570
s->num_v_slices = (avctx->width > 352 || avctx->height > 288 || !avctx->slices) ? 2 : 1;
571571
s->num_v_slices = FFMIN(s->num_v_slices, max_v_slices);
572-
for (; s->num_v_slices < 32; s->num_v_slices++) {
572+
for (; s->num_v_slices <= 32; s->num_v_slices++) {
573573
for (s->num_h_slices = s->num_v_slices; s->num_h_slices <= 2*s->num_v_slices; s->num_h_slices++) {
574574
int maxw = (avctx->width + s->num_h_slices - 1) / s->num_h_slices;
575575
int maxh = (avctx->height + s->num_v_slices - 1) / s->num_v_slices;

0 commit comments

Comments
 (0)