[FFmpeg-devel] [PATCH 141/281] sdx: convert to new channel layout API

James Almer jamrial at gmail.com
Thu Jan 13 03:57:58 EET 2022


From: Anton Khirnov <anton at khirnov.net>

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/sdxdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/sdxdec.c b/libavformat/sdxdec.c
index 76fd2caa00..45edd62976 100644
--- a/libavformat/sdxdec.c
+++ b/libavformat/sdxdec.c
@@ -54,7 +54,8 @@ static int sdx_read_header(AVFormatContext *s)
         return AVERROR(ENOMEM);
 
     st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
-    st->codecpar->channels = 1;
+    st->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+    st->codecpar->ch_layout.nb_channels = 1;
     st->codecpar->sample_rate = avio_rl32(s->pb);
     switch (depth) {
     case 8:
-- 
2.34.1



More information about the ffmpeg-devel mailing list