aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:25:32 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:33 -0300
commitc94220e96de28152ca4fb1df549efe0edb001204 (patch)
treebe4c28d1f670e7c1e11abfd98f8d1e4c4b1a24fe
parent2f271172b011bda16b3182fa55655763b65902f3 (diff)
downloadffmpeg-c94220e96de28152ca4fb1df549efe0edb001204.tar.gz
imx: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/imx.c3
1 files changed, 1 insertions, 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;