mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-04 13:53:26 +00:00
vaapi_encode_mpeg2: Fix width/height columns/rows confusion
Fixes #7522.
This commit is contained in:
parent
4885ff663b
commit
c0692cb2bb
@ -545,8 +545,8 @@ static av_cold int vaapi_encode_mpeg2_configure(AVCodecContext *avctx)
|
|||||||
av_assert0(0 && "Invalid RC mode.");
|
av_assert0(0 && "Invalid RC mode.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->slice_block_rows = FFALIGN(avctx->width, 16) / 16;
|
ctx->slice_block_rows = FFALIGN(avctx->height, 16) / 16;
|
||||||
ctx->slice_block_cols = FFALIGN(avctx->height, 16) / 16;
|
ctx->slice_block_cols = FFALIGN(avctx->width, 16) / 16;
|
||||||
|
|
||||||
ctx->nb_slices = ctx->slice_block_rows;
|
ctx->nb_slices = ctx->slice_block_rows;
|
||||||
ctx->slice_size = 1;
|
ctx->slice_size = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user