#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "get_bits.h"
-#include "internal.h"
#include "mpegaudiodsp.h"
#include "mpc.h"
for (unsigned tmp = num + codes_counts[i - 1]; num < tmp; num++)
len[num] = i;
- ff_init_vlc_from_lengths(vlc, FFMIN(len[0], 9), num, len, 1,
- *syms, 1, 1, offset, INIT_VLC_STATIC_OVERLONG, NULL);
+ ff_vlc_init_from_lengths(vlc, FFMIN(len[0], 9), num, len, 1,
+ *syms, 1, 1, offset, VLC_INIT_STATIC_OVERLONG, NULL);
*buf_offset += vlc->table_size;
*syms += num;
}
const FFCodec ff_mpc8_decoder = {
.p.name = "mpc8",
- .p.long_name = NULL_IF_CONFIG_SMALL("Musepack SV8"),
+ CODEC_LONG_NAME("Musepack SV8"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_MUSEPACK8,
.priv_data_size = sizeof(MPCContext),
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
.p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
AV_SAMPLE_FMT_NONE },
- .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};