1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/vaapi_encode_h265: fix missing slice_block_cols assignment

Instead of assigning to unit_opts.slice_block_cols, the slice_block_cols
value from the context was incorrectly assigned to slice_block_rows.

Regression from 12f158ca8f

Fixes CID1619479 Unused value

Reviewed-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
Marvin Scholz 2024-09-19 20:01:05 +02:00 committed by Haihao Xiang
parent 4858a8ee2f
commit 720ae6b3f7

View File

@ -275,7 +275,7 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
priv->unit_opts.tile_cols = ctx->tile_cols;
priv->unit_opts.nb_slices = ctx->nb_slices;
priv->unit_opts.slice_block_rows = ctx->slice_block_rows;
priv->unit_opts.slice_block_rows = ctx->slice_block_cols;
priv->unit_opts.slice_block_cols = ctx->slice_block_cols;
memcpy(priv->unit_opts.col_width, ctx->col_width,
ctx->tile_rows*sizeof(*priv->unit_opts.col_width));
memcpy(priv->unit_opts.row_height, ctx->row_height,