diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 17:24:06 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:34 -0300 |
commit | af88f91d72812707283e3d8b56396ac1afcefeca (patch) | |
tree | 94a24404d3a6abba0980f9286d84358fa18708d8 | |
parent | c26a7507aa723cab3632d8597e98df4fff19f010 (diff) | |
download | ffmpeg-af88f91d72812707283e3d8b56396ac1afcefeca.tar.gz |
mp3: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/mp3enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 3ff19da274..91874fa14e 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -175,7 +175,7 @@ static int mp3_write_xing(AVFormatContext *s) return -1; } - switch (par->channels) { + switch (par->ch_layout.nb_channels) { case 1: channels = MPA_MONO; break; case 2: channels = MPA_STEREO; break; default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, " |