summaryrefslogtreecommitdiff
path: root/libavformat/hcom.c
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:33 -0300
commit8f835935b3fe367cc419d505d9e8fd900909e8ab (patch)
tree309d503c819281dd1bb3bd1007fd6fa421968a78 /libavformat/hcom.c
parentd71bddbbe90c2165936d66e31f564aa73d7fe89a (diff)
downloadffmpeg-8f835935b3fe367cc419d505d9e8fd900909e8ab.tar.gz
hcom: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/hcom.c')
-rw-r--r--libavformat/hcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hcom.c b/libavformat/hcom.c
index 97f0003210..5031f00297 100644
--- a/libavformat/hcom.c
+++ b/libavformat/hcom.c
@@ -61,7 +61,7 @@ static int hcom_read_header(AVFormatContext *s)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
- st->codecpar->channels = 1;
+ st->codecpar->ch_layout.nb_channels = 1;
st->codecpar->sample_rate = 22050 / divisor;
st->codecpar->codec_id = AV_CODEC_ID_HCOM;
st->codecpar->bits_per_coded_sample = 8;