History

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.

Andreas Rheinhardt committed 1 year ago

Commit 094c2e71 parent 38e8eef1 file · +2 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/vc1dec.c+2−2
@@ -471,8 +471,8 @@ av_cold int ff_vc1_decode_init(AVCodecContext *avctx) · 470 unmodified lines
471471 if (ret < 0)
472472 return ret;
473473
474− ff_init_scantable(s->idsp.idct_permutation, &s->intra_scantable,
475− ff_wmv1_scantable[1]);
474+ ff_permute_scantable(s->intra_scantable.permutated, ff_wmv1_scantable[1],
475+ s->idsp.idct_permutation);
476476
477477 ret = vc1_decode_init_alloc_tables(v);
478478 if (ret < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t