[FFmpeg-devel] [PATCH 079/281] ilbc: convert to new channel layout API

James Almer jamrial at gmail.com
Thu Jan 13 03:50:41 EET 2022


From: Vittorio Giovara <vittorio.giovara at gmail.com>

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/ilbc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ilbc.c b/libavformat/ilbc.c
index 0cbdd3d5b8..361116571f 100644
--- a/libavformat/ilbc.c
+++ b/libavformat/ilbc.c
@@ -75,7 +75,7 @@ static int ilbc_read_header(AVFormatContext *s)
         return AVERROR(ENOMEM);
     st->codecpar->codec_id = AV_CODEC_ID_ILBC;
     st->codecpar->sample_rate = 8000;
-    st->codecpar->channels = 1;
+    st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
     st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
     st->start_time = 0;
     avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
-- 
2.34.1



More information about the ffmpeg-devel mailing list