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/motionpixels.c | |
parent | 95e876f069e9c5ed268ddcdeb06cc5e056c5e63c (diff) | |
download | ffmpeg-9cdf82c2c2f0cec6d3963737bfdf3b3f3112ff20.tar.gz |
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/motionpixels.c')
-rw-r--r-- | libavcodec/motionpixels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c index a947ca05de..9df0b20676 100644 --- a/libavcodec/motionpixels.c +++ b/libavcodec/motionpixels.c @@ -328,7 +328,7 @@ static int mp_decode_frame(AVCodecContext *avctx, AVFrame *rframe, if (mp->codes_count > 1) { /* The entries of the mp->codes array are sorted from right to left * in the Huffman tree, hence -(int)sizeof(HuffCode). */ - ret = ff_init_vlc_from_lengths(&mp->vlc, mp->max_codes_bits, mp->codes_count, + ret = ff_vlc_init_from_lengths(&mp->vlc, mp->max_codes_bits, mp->codes_count, &mp->codes[mp->codes_count - 1].size, -(int)sizeof(HuffCode), &mp->codes[mp->codes_count - 1].delta, -(int)sizeof(HuffCode), 1, 0, 0, avctx); @@ -336,7 +336,7 @@ static int mp_decode_frame(AVCodecContext *avctx, AVFrame *rframe, goto end; } mp_decode_frame_helper(mp, &gb); - ff_free_vlc(&mp->vlc); + ff_vlc_free(&mp->vlc); end: if ((ret = av_frame_ref(rframe, mp->frame)) < 0) |