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/eamad.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/eamad.c')
-rw-r--r-- | libavcodec/eamad.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index de8f488f65..45012c62b8 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -128,7 +128,6 @@ static inline void idct_put(MadContext *t, AVFrame *frame, int16_t *block, static inline int decode_block_intra(MadContext *s, int16_t * block) { int level, i, j, run; - RLTable *rl = &ff_rl_mpeg1; const uint8_t *scantable = ff_zigzag_direct; int16_t *quant_matrix = s->quant_matrix; @@ -142,7 +141,7 @@ static inline int decode_block_intra(MadContext *s, int16_t * block) /* now quantify & encode AC coefficients */ for (;;) { UPDATE_CACHE(re, &s->gb); - GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0); + GET_RL_VLC(level, run, re, &s->gb, ff_mpeg1_rl_vlc, TEX_VLC_BITS, 2, 0); if (level == 127) { break; |