[FFmpeg-cvslog] avcodec/vc1dec: Don't initialize unused parts of ScanTable

Andreas Rheinhardt git at videolan.org
Fri Mar 7 16:21:13 EET 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Mar  3 03:36:57 2025 +0100| [094c2e7f5b4bb42a45fe5909446ec179b2aaa568] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=094c2e7f5b4bb42a45fe5909446ec179b2aaa568
---

 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) {



More information about the ffmpeg-cvslog mailing list