#include "avcodec.h"
#include "codec_internal.h"
+#include "decode.h"
#include "internal.h"
-#include "vorbis.h"
#include "mathops.h"
#include "libopus.h"
+#include "vorbis_data.h"
struct libopus_context {
AVClass *class;
const FFCodec ff_libopus_decoder = {
.p.name = "libopus",
- .p.long_name = NULL_IF_CONFIG_SMALL("libopus Opus"),
+ CODEC_LONG_NAME("libopus Opus"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_OPUS,
.priv_data_size = sizeof(struct libopus_context),
FF_CODEC_DECODE_CB(libopus_decode),
.flush = libopus_flush,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE |
+ FF_CODEC_CAP_INIT_CLEANUP,
.p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },