diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-21 23:17:07 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-27 15:44:36 +0200 |
commit | 11dfa4d15963a7ad71b763261d6d7e3dcded9965 (patch) | |
tree | 5cfb8de2192009d8fc18f8d0cd957250bd6ce385 /libavcodec/mdec.c | |
parent | 9aa7397db13e649b3d2d04cdb33920d7a9000d87 (diff) | |
download | ffmpeg-11dfa4d15963a7ad71b763261d6d7e3dcded9965.tar.gz |
avcodec/mpeg12: Avoid indirection when accessing rl_vlc tables
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r-- | libavcodec/mdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index a1f85aa0cf..640b671a0f 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -63,7 +63,6 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n) { int level, diff, i, j, run; int component; - RLTable *rl = &ff_rl_mpeg1; const uint8_t *const scantable = a->permutated_scantable; const uint16_t *quant_matrix = a->quant_matrix; const int qscale = a->qscale; @@ -84,7 +83,7 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n) /* now quantify & encode AC coefficients */ for (;;) { UPDATE_CACHE(re, &a->gb); - GET_RL_VLC(level, run, re, &a->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0); + GET_RL_VLC(level, run, re, &a->gb, ff_mpeg1_rl_vlc, TEX_VLC_BITS, 2, 0); if (level == 127) { break; |