Fixes #7522.
Unified · Split
| @@ -545,8 +545,8 @@ static av_cold int vaapi_encode_mpeg2_configure(AVCodecContext *avctx) · 544 unmodified lines | |||
| 545 | av_assert0(0 && "Invalid RC mode."); | 545 | av_assert0(0 && "Invalid RC mode."); |
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | ctx->slice_block_rows = FFALIGN(avctx->width, 16) / 16; | 548 | ctx->slice_block_rows = FFALIGN(avctx->height, 16) / 16; |
| 549 | ctx->slice_block_cols = FFALIGN(avctx->height, 16) / 16; | 549 | ctx->slice_block_cols = FFALIGN(avctx->width, 16) / 16; |
| 550 | 550 | ||
| 551 | ctx->nb_slices = ctx->slice_block_rows; | 551 | ctx->nb_slices = ctx->slice_block_rows; |
| 552 | ctx->slice_size = 1; | 552 | ctx->slice_size = 1; |