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>
release/7.1
Marvin Scholz 3 months ago committed by Haihao Xiang
parent 4858a8ee2f
commit 720ae6b3f7
  1. 2
      libavcodec/vaapi_encode_h265.c

@ -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,

Loading…
Cancel
Save