aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/aixdec.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:30 -0300
commit00c5526fc8bbfcd210f685c49bcd345fa2160b60 (patch)
tree347fb3deb5bec96edf57568c2d8f18d480b78a38 /libavformat/aixdec.c
parent0ecd7106d7393adda82dee4944915572638b6483 (diff)
downloadffmpeg-00c5526fc8bbfcd210f685c49bcd345fa2160b60.tar.gz
aixdec: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/aixdec.c')
-rw-r--r--libavformat/aixdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aixdec.c b/libavformat/aixdec.c
index 59c3d60da3..7cee80eb33 100644
--- a/libavformat/aixdec.c
+++ b/libavformat/aixdec.c
@@ -64,7 +64,7 @@ static int aix_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_ADX;
st->codecpar->sample_rate = avio_rb32(s->pb);
- st->codecpar->channels = avio_r8(s->pb);
+ st->codecpar->ch_layout.nb_channels = avio_r8(s->pb);
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
avio_skip(s->pb, 3);
}