summaryrefslogtreecommitdiff
path: root/libavcodec/opusdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/opusdec.c')
-rw-r--r--libavcodec/opusdec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/opusdec.c b/libavcodec/opusdec.c
index 4bd9555031..8ad53c7cb3 100644
--- a/libavcodec/opusdec.c
+++ b/libavcodec/opusdec.c
@@ -705,17 +705,17 @@ static const AVClass opus_class = {
.version = LIBAVUTIL_VERSION_INT,
};
-const AVCodec ff_opus_decoder = {
- .name = "opus",
- .long_name = NULL_IF_CONFIG_SMALL("Opus"),
- .priv_class = &opus_class,
- .type = AVMEDIA_TYPE_AUDIO,
- .id = AV_CODEC_ID_OPUS,
+const FFCodec ff_opus_decoder = {
+ .p.name = "opus",
+ .p.long_name = NULL_IF_CONFIG_SMALL("Opus"),
+ .p.priv_class = &opus_class,
+ .p.type = AVMEDIA_TYPE_AUDIO,
+ .p.id = AV_CODEC_ID_OPUS,
.priv_data_size = sizeof(OpusContext),
.init = opus_decode_init,
.close = opus_decode_close,
.decode = opus_decode_packet,
.flush = opus_decode_flush,
- .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF,
+ .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};