From: Anton Khirnov <[email protected]>

Signed-off-by: James Almer <[email protected]>
---
 libavformat/sdr2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c
index 6799339420..8b99419bc4 100644
--- a/libavformat/sdr2.c
+++ b/libavformat/sdr2.c
@@ -54,7 +54,8 @@ static int sdr2_read_header(AVFormatContext *s)
     ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;
 
     ast->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
-    ast->codecpar->channels    = 1;
+    ast->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+    ast->codecpar->ch_layout.nb_channels = 1;
     ast->codecpar->sample_rate = 8000;
     ast->codecpar->codec_id    = AV_CODEC_ID_PCM_S16LE;
     avpriv_set_pts_info(ast, 64, 1, 8000);
-- 
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".

Reply via email to