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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
diff --git a/libavcodec/qdm2_tablegen.h b/libavcodec/qdm2_tablegen.h
index a68ea85..6e174a7 100644
--- a/libavcodec/qdm2_tablegen.h
+++ b/libavcodec/qdm2_tablegen.h
@@ -116,9 +116,9 @@
{
vlc->table = &qdm2_table[*offset];
vlc->table_allocated = FF_ARRAY_ELEMS(qdm2_table) - *offset;
- 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,
- -1, INIT_VLC_STATIC_OVERLONG | INIT_VLC_LE, NULL);
+ -1, VLC_INIT_STATIC_OVERLONG | VLC_INIT_LE, NULL);
*offset += vlc->table_size;
}