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:
parent
c26a7507aa
commit
af88f91d72
@ -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…
x
Reference in New Issue
Block a user