aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-13 11:11:26 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:29 -0300
commitc72095739c3aca02499a3c451ae7874676eedd7e (patch)
treeb0d3c94d521ff0ebb916bc5eb0ab3c982bbfb5ed
parentc465791d3b9b7cf67be440ee06daf2eeb9f1c9fa (diff)
downloadffmpeg-c72095739c3aca02499a3c451ae7874676eedd7e.tar.gz
aa: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/aadec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/aadec.c b/libavformat/aadec.c
index b8a5428f1f..19aa26e099 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -178,7 +178,7 @@ 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.nb_channels = 1;
st->codecpar->sample_rate = 8500;
st->codecpar->bit_rate = 8500;
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
@@ -186,7 +186,7 @@ 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.nb_channels = 1;
st->codecpar->sample_rate = 16000;
st->codecpar->bit_rate = 16000;
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;