aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudioenc_float.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-29 09:36:27 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:43 -0300
commit53d25983bf2e9db8a9b8107fde9a82aad5259d8a (patch)
tree18cbc2a88e093bfc18eda3bc79e5c2572c2d553f /libavcodec/mpegaudioenc_float.c
parenta96c94bbd809e1bf56cab276498f7efc2869fbd2 (diff)
downloadffmpeg-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.c5
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,
};