ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Thu Sep 19 20:01:05 2024 +0200| [720ae6b3f782c01b60844b829e09463e3d6433ec] | committer: Haihao Xiang
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.w...@intel.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=720ae6b3f782c01b60844b829e09463e3d6433ec --- libavcodec/vaapi_encode_h265.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".