diff options
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r-- | libavcodec/vorbisdec.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index cb009d902a..e83a83f641 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -1885,22 +1885,22 @@ static av_cold void vorbis_decode_flush(AVCodecContext *avctx) vc->first_frame = 0; } -const AVCodec ff_vorbis_decoder = { - .name = "vorbis", - .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), - .type = AVMEDIA_TYPE_AUDIO, - .id = AV_CODEC_ID_VORBIS, +const FFCodec ff_vorbis_decoder = { + .p.name = "vorbis", + .p.long_name = NULL_IF_CONFIG_SMALL("Vorbis"), + .p.type = AVMEDIA_TYPE_AUDIO, + .p.id = AV_CODEC_ID_VORBIS, .priv_data_size = sizeof(vorbis_context), .init = vorbis_decode_init, .close = vorbis_decode_close, .decode = vorbis_decode_frame, .flush = vorbis_decode_flush, - .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, + .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, #if FF_API_OLD_CHANNEL_LAYOUT - .channel_layouts = ff_vorbis_channel_layouts, + .p.channel_layouts = ff_vorbis_channel_layouts, #endif - .ch_layouts = ff_vorbis_ch_layouts, - .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, + .p.ch_layouts = ff_vorbis_ch_layouts, + .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, }; |