From 4ce1bdfb79cd192035eded62e5564247a86ce80d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 3 Mar 2025 03:36:57 +0100 Subject: [PATCH 04/40] avcodec/vc1dec: Don't initialize unused parts of ScanTable The VC-1 decoders don't need ScanTable.raster_end as they don't call any of the unquantize functions. Signed-off-by: Andreas Rheinhardt --- libavcodec/vc1dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 7256ad9557..d92a7da8ab 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -471,8 +471,8 @@ av_cold int ff_vc1_decode_init(AVCodecContext *avctx) if (ret < 0) return ret; - ff_init_scantable(s->idsp.idct_permutation, &s->intra_scantable, - ff_wmv1_scantable[1]); + ff_permute_scantable(s->intra_scantable.permutated, ff_wmv1_scantable[1], + s->idsp.idct_permutation); ret = vc1_decode_init_alloc_tables(v); if (ret < 0) { -- 2.45.2