1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

mp3: convert to new channel layout API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Vittorio Giovara
2017-03-31 17:24:06 +02:00
committed by James Almer
parent c26a7507aa
commit af88f91d72

View File

@@ -175,7 +175,7 @@ static int mp3_write_xing(AVFormatContext *s)
return -1; return -1;
} }
switch (par->channels) { switch (par->ch_layout.nb_channels) {
case 1: channels = MPA_MONO; break; case 1: channels = MPA_MONO; break;
case 2: channels = MPA_STEREO; break; case 2: channels = MPA_STEREO; break;
default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, " default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, "