1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-03 03:36:57 +01:00
parent 38e8eefc9c
commit 094c2e7f5b

View File

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