@@ -273,11 +273,11 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
priv->unit_opts.cu_qp_delta_enabled_flag = (ctx->va_rc_mode != VA_RC_CQP);
priv->unit_opts.tile_rows = ctx->tile_rows;
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,
ctx->tile_cols*sizeof(*priv->unit_opts.row_height));