mp3: convert to new channel layout API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Vittorio Giovara 8 years ago committed by James Almer
parent c26a7507aa
commit af88f91d72
  1. 2
      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, "

Loading…
Cancel
Save