diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-22 02:58:49 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-27 16:44:38 +0300 |
commit | 4a8fe21ab4390affc8da9ff51103d9d32fad0044 (patch) | |
tree | 8313b39ba72074d6873dba0bb99b4e6746f62e55 /libavcodec/speedhqdec.c | |
parent | 06fafbe01e2a07dd636f512101d95caaa58302b1 (diff) |
avcodec/mpeg12: Pass parameters explicitly in ff_init_2d_vlc_rl()
This allows to exploit that ff_rl_mpeg1 and ff_rl_mpeg2
only differ in their VLC table.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/speedhqdec.c')
-rw-r--r-- | libavcodec/speedhqdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/speedhqdec.c b/libavcodec/speedhqdec.c index 93b60a4c3d..1ed8cfb9ff 100644 --- a/libavcodec/speedhqdec.c +++ b/libavcodec/speedhqdec.c @@ -566,7 +566,9 @@ static av_cold void speedhq_static_init(void) ff_mpeg12_vlc_dc_chroma_code, 2, 2, INIT_VLC_OUTPUT_LE, 514); - INIT_2D_VLC_RL(ff_rl_speedhq, speedhq_rl_vlc, INIT_VLC_LE); + ff_init_2d_vlc_rl(ff_speedhq_vlc_table, speedhq_rl_vlc, ff_rl_speedhq.table_run, + ff_rl_speedhq.table_level, ff_rl_speedhq.n, + FF_ARRAY_ELEMS(speedhq_rl_vlc), INIT_VLC_LE); compute_alpha_vlcs(); } |