Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-22 02:58:49 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-27 16:44:38 +0300
commit4a8fe21ab4390affc8da9ff51103d9d32fad0044 (patch)
tree8313b39ba72074d6873dba0bb99b4e6746f62e55 /libavcodec/speedhqdec.c
parent06fafbe01e2a07dd636f512101d95caaa58302b1 (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.c4
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();
}