diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-29 09:36:27 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:43 -0300 |
commit | 53d25983bf2e9db8a9b8107fde9a82aad5259d8a (patch) | |
tree | 18cbc2a88e093bfc18eda3bc79e5c2572c2d553f /libavcodec/mpegaudioenc_float.c | |
parent | a96c94bbd809e1bf56cab276498f7efc2869fbd2 (diff) | |
download | ffmpeg-53d25983bf2e9db8a9b8107fde9a82aad5259d8a.tar.gz |
mpegaudio: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudioenc_float.c')
-rw-r--r-- | libavcodec/mpegaudioenc_float.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mpegaudioenc_float.c b/libavcodec/mpegaudioenc_float.c index accb909a6f..9f9b885d21 100644 --- a/libavcodec/mpegaudioenc_float.c +++ b/libavcodec/mpegaudioenc_float.c @@ -36,9 +36,14 @@ const AVCodec ff_mp2_encoder = { .supported_samplerates = (const int[]){ 44100, 48000, 32000, 22050, 24000, 16000, 0 }, +#if FF_API_OLD_CHANNEL_LAYOUT .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO, AV_CH_LAYOUT_STEREO, 0 }, +#endif + .ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, + AV_CHANNEL_LAYOUT_STEREO, + { 0 } }, .defaults = mp2_defaults, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; |