aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-10-29 19:41:24 +0000
committerMark Thompson <sw@jkqxz.net>2018-10-29 19:41:24 +0000
commitc0692cb2bb3b51660b501f14bd344005c68df465 (patch)
tree63e8f3d67b7815344b2d067096bab76a693f03d2
parent4885ff663bec7e971200c5f0b34c1c27bad07182 (diff)
downloadffmpeg-c0692cb2bb3b51660b501f14bd344005c68df465.tar.gz
vaapi_encode_mpeg2: Fix width/height columns/rows confusion
Fixes #7522.
-rw-r--r--libavcodec/vaapi_encode_mpeg2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c
index 99a8b43237..22d7e306bb 100644
--- a/libavcodec/vaapi_encode_mpeg2.c
+++ b/libavcodec/vaapi_encode_mpeg2.c
@@ -545,8 +545,8 @@ static av_cold int vaapi_encode_mpeg2_configure(AVCodecContext *avctx)
av_assert0(0 && "Invalid RC mode.");
}
- ctx->slice_block_rows = FFALIGN(avctx->width, 16) / 16;
- ctx->slice_block_cols = FFALIGN(avctx->height, 16) / 16;
+ ctx->slice_block_rows = FFALIGN(avctx->height, 16) / 16;
+ ctx->slice_block_cols = FFALIGN(avctx->width, 16) / 16;
ctx->nb_slices = ctx->slice_block_rows;
ctx->slice_size = 1;