aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-01 11:59:00 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-05 22:05:21 +0200
commitbc7de8b63c424c79dda67f2abb2425133bf218e4 (patch)
tree10019e1ed95006e08f22f5d2d638344afbf6b13e /libswresample
parent89c10d8d20c9eed34d9c3b3ab2aab378bb7208d4 (diff)
downloadffmpeg-bc7de8b63c424c79dda67f2abb2425133bf218e4.tar.gz
avcodec/mpeg12dec: Don't initialize IDCT more than once
Before 998c9f15d1ca8c7489775ebcca51623b915988f1, the IDCTDSPContext has only been initialized in ff_mpv_common_init() which is deferred until immediately before decoding a picture; to nevertheless parse the quant matrices in sequence headers or quant matrix extensions, a dummy (identity) permutation has been stored in the codec's init function; after ff_mpv_common_init() which could change the permutation the matrices were repermutated. Yet since said commit, the IDCTDSPContext is initialized during init and does not change afterwards (unless the user forces different CPU flags), so there is no need to reinitialize it; the repermutation code can be removed as well. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswresample')
0 files changed, 0 insertions, 0 deletions