summaryrefslogtreecommitdiff
path: root/libavformat/hca.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:21:59 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:33 -0300
commitd71bddbbe90c2165936d66e31f564aa73d7fe89a (patch)
treebbd83634d12aef45505734e1e3156671da3d97b7 /libavformat/hca.c
parent92e9b6ab6dcd8463f7a280a700438927195ba6ff (diff)
hca: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/hca.c')
-rw-r--r--libavformat/hca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hca.c b/libavformat/hca.c
index eaa96a9b17..74ac00acc0 100644
--- a/libavformat/hca.c
+++ b/libavformat/hca.c
@@ -79,7 +79,7 @@ static int hca_read_header(AVFormatContext *s)
par->codec_type = AVMEDIA_TYPE_AUDIO;
par->codec_id = AV_CODEC_ID_HCA;
par->codec_tag = 0;
- par->channels = bytestream2_get_byte(&gb);
+ st->codecpar->ch_layout.nb_channels = bytestream2_get_byte(&gb);
par->sample_rate = bytestream2_get_be24(&gb);
block_count = bytestream2_get_be32(&gb);
bytestream2_skip(&gb, 4);