mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 14:24:26 +08:00
ac3: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:

committed by
James Almer

parent
494760f971
commit
111ed1b16b
@@ -123,6 +123,7 @@ av_cold int ff_ac3_float_encode_init(AVCodecContext *avctx)
|
||||
return ff_ac3_encode_init(avctx);
|
||||
}
|
||||
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
const AVCodec ff_ac3_encoder = {
|
||||
.name = "ac3",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
|
||||
@@ -137,7 +138,11 @@ const AVCodec ff_ac3_encoder = {
|
||||
AV_SAMPLE_FMT_NONE },
|
||||
.priv_class = &ff_ac3enc_class,
|
||||
.supported_samplerates = ff_ac3_sample_rate_tab,
|
||||
#if FF_API_OLD_CHANNEL_LAYOUT
|
||||
.channel_layouts = ff_ac3_channel_layouts,
|
||||
#endif
|
||||
.ch_layouts = ff_ac3_ch_layouts,
|
||||
.defaults = ff_ac3_enc_defaults,
|
||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
|
||||
};
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
Reference in New Issue
Block a user