[FFmpeg-devel] [PATCH 011/279] aa: convert to new channel layout API
James Almer
jamrial at gmail.com
Wed Dec 8 03:06:27 EET 2021
From: Anton Khirnov <anton at khirnov.net>
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/aadec.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavformat/aadec.c b/libavformat/aadec.c
index 72f4b6f7cc..fbb9e0114e 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -190,7 +190,8 @@ static int aa_read_header(AVFormatContext *s)
} else if (!strcmp(codec_name, "acelp85")) {
st->codecpar->codec_id = AV_CODEC_ID_SIPR;
st->codecpar->block_align = 19;
- st->codecpar->channels = 1;
+ st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
+ st->codecpar->ch_layout.nb_channels = 1;
st->codecpar->sample_rate = 8500;
st->codecpar->bit_rate = 8500;
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
@@ -198,7 +199,8 @@ static int aa_read_header(AVFormatContext *s)
} else if (!strcmp(codec_name, "acelp16")) {
st->codecpar->codec_id = AV_CODEC_ID_SIPR;
st->codecpar->block_align = 20;
- st->codecpar->channels = 1;
+ st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
+ st->codecpar->ch_layout.nb_channels = 1;
st->codecpar->sample_rate = 16000;
st->codecpar->bit_rate = 16000;
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
--
2.34.1
More information about the ffmpeg-devel
mailing list