diff options
Diffstat (limited to 'libavcodec/alacenc.c')
-rw-r--r-- | libavcodec/alacenc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index 541b0fbd9a..62ac32e345 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -649,22 +649,22 @@ static const AVClass alacenc_class = { }; FF_DISABLE_DEPRECATION_WARNINGS -const AVCodec ff_alac_encoder = { - .name = "alac", - .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), - .type = AVMEDIA_TYPE_AUDIO, - .id = AV_CODEC_ID_ALAC, +const FFCodec ff_alac_encoder = { + .p.name = "alac", + .p.long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), + .p.type = AVMEDIA_TYPE_AUDIO, + .p.id = AV_CODEC_ID_ALAC, .priv_data_size = sizeof(AlacEncodeContext), - .priv_class = &alacenc_class, + .p.priv_class = &alacenc_class, .init = alac_encode_init, .encode2 = alac_encode_frame, .close = alac_encode_close, - .capabilities = AV_CODEC_CAP_SMALL_LAST_FRAME, + .p.capabilities = AV_CODEC_CAP_SMALL_LAST_FRAME, #if FF_API_OLD_CHANNEL_LAYOUT - .channel_layouts = alac_channel_layouts, + .p.channel_layouts = alac_channel_layouts, #endif - .ch_layouts = ff_alac_ch_layouts, - .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, + .p.ch_layouts = ff_alac_ch_layouts, + .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_NONE }, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, |