From: Vittorio Giovara <[email protected]>

Signed-off-by: Vittorio Giovara <[email protected]>
Signed-off-by: James Almer <[email protected]>
---
 libavformat/g722.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/g722.c b/libavformat/g722.c
index 3bfe05ea6f..08cd2cbc87 100644
--- a/libavformat/g722.c
+++ b/libavformat/g722.c
@@ -35,7 +35,7 @@ static int g722_read_header(AVFormatContext *s)
     st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
     st->codecpar->codec_id    = AV_CODEC_ID_ADPCM_G722;
     st->codecpar->sample_rate = 16000;
-    st->codecpar->channels    = 1;
+    st->codecpar->ch_layout   = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
 
     st->codecpar->bits_per_coded_sample =
         av_get_bits_per_sample(st->codecpar->codec_id);
-- 
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