diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-08 15:18:12 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-11 00:27:45 +0200 |
commit | 9cdf82c2c2f0cec6d3963737bfdf3b3f3112ff20 (patch) | |
tree | 74f8ed5b6a51ced9f8dd0821da4dd00c8efa5944 /libavcodec/rv40.c | |
parent | 95e876f069e9c5ed268ddcdeb06cc5e056c5e63c (diff) |
avcodec/vlc: Use proper namespace
Therefore use a proper prefix for this API, e.g.
ff_init_vlc_sparse -> ff_vlc_init_sparse
ff_free_vlc -> ff_vlc_free
INIT_VLC_LE -> VLC_INIT_LE
INIT_VLC_USE_NEW_STATIC -> VLC_INIT_USE_STATIC
(The ancient INIT_VLC_USE_STATIC has been removed
in 595324e143b57a52e2329eb47b84395c70f93087, so that
the NEW has been dropped.)
Finally, reorder the flags and change their values
accordingly.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rv40.c')
-rw-r--r-- | libavcodec/rv40.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c index 75849b173e..d2f8ef9f5a 100644 --- a/libavcodec/rv40.c +++ b/libavcodec/rv40.c @@ -53,9 +53,9 @@ static av_cold void rv40_init_table(VLC *vlc, unsigned *offset, int nb_bits, vlc->table_allocated = 1 << nb_bits; *offset += 1 << nb_bits; - ff_init_vlc_from_lengths(vlc, nb_bits, nb_codes, + ff_vlc_init_from_lengths(vlc, nb_bits, nb_codes, &tab[0][1], 2, &tab[0][0], 2, 1, - 0, INIT_VLC_USE_NEW_STATIC, NULL); + 0, VLC_INIT_USE_STATIC, NULL); } /** @@ -87,9 +87,9 @@ static av_cold void rv40_init_tables(void) } aic_mode2_vlc[i].table = &aic_mode2_table[offset]; aic_mode2_vlc[i].table_allocated = FF_ARRAY_ELEMS(aic_mode2_table) - offset; - ff_init_vlc_from_lengths(&aic_mode2_vlc[i], AIC_MODE2_BITS, AIC_MODE2_SIZE, + ff_vlc_init_from_lengths(&aic_mode2_vlc[i], AIC_MODE2_BITS, AIC_MODE2_SIZE, aic_mode2_vlc_bits[i], 1, - syms, 2, 2, 0, INIT_VLC_STATIC_OVERLONG, NULL); + syms, 2, 2, 0, VLC_INIT_STATIC_OVERLONG, NULL); offset += aic_mode2_vlc[i].table_size; } for(i = 0; i < NUM_PTYPE_VLCS; i++){ |