aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-13 20:18:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-20 18:58:39 +0200
commit7b539ca3e6bae701d88096ff8dc3db7f13b7318a (patch)
treed4edcd599141d171f3d03b573e04b1a204ba3af8 /libavcodec/mpegvideo.h
parentfee9520716da1e1eb5ddfc0c041932bf8e1ba696 (diff)
downloadffmpeg-7b539ca3e6bae701d88096ff8dc3db7f13b7318a.tar.gz
avcodec/mpeg_er: Simplify disabling IDCT
The error resilience code does not make up block coefficients and therefore zeroes them in order to disable the IDCT. But this can be done in a simpler manner, namely by setting block_last_index to a negative value. Doing so also has the advantage that the dct_unquantize functions are never even called for those codecs that do not use ff_mpv_reconstruct_mb() for ordinary decoding (namely RV-30/40 and the VC-1 family). This approach would not work for intra macroblocks (there is always at least one coefficient for them and therefore there is no check for block_last_index for them), but this does not happen at all. Add an assert for this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo.h')
0 files changed, 0 insertions, 0 deletions