[FFmpeg-devel] [PATCH 080/281] imx: convert to new channel layout API
James Almer
jamrial at gmail.com
Thu Jan 13 03:50:42 EET 2022
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/imx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/imx.c b/libavformat/imx.c
index e8ca79d057..c8b1a3b2ad 100644
--- a/libavformat/imx.c
+++ b/libavformat/imx.c
@@ -76,8 +76,7 @@ static int simbiosis_imx_read_header(AVFormatContext *s)
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codecpar->codec_tag = 0;
ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
- ast->codecpar->channels = 1;
- ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
+ ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
ast->codecpar->sample_rate = 22050;
ast->start_time = 0;
--
2.34.1
More information about the ffmpeg-devel
mailing list