diff options
author | Marvin Scholz <epirat07@gmail.com> | 2024-09-19 20:01:05 +0200 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2024-09-20 09:30:11 +0800 |
commit | 720ae6b3f782c01b60844b829e09463e3d6433ec (patch) | |
tree | c12519baa966a35bbf5feabad09b576445437a9a | |
parent | 4858a8ee2fc0ebc2aeab5185939d4bf93930f2d8 (diff) | |
download | ffmpeg-720ae6b3f782c01b60844b829e09463e3d6433ec.tar.gz |
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 12f158ca8f2ecc172f27569af88426d0e39ce995
Fixes CID1619479 Unused value
Reviewed-by: Fei Wang <fei.w.wang@intel.com>
-rw-r--r-- | libavcodec/vaapi_encode_h265.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index f4a9003c82..2283bcc0b4 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/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, |