From: Vittorio Giovara <[email protected]>
Signed-off-by: Vittorio Giovara <[email protected]>
Signed-off-by: James Almer <[email protected]>
---
libavformat/mp3enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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, "
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".