summaryrefslogtreecommitdiff
path: root/libavdevice/sndio_dec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-01-17 13:08:34 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:37 -0300
commit6f1a9effef99696cd7ddf522123c09920f3a8753 (patch)
tree1da16a6dbc6c21301c1723148e579f5744d4c5c5 /libavdevice/sndio_dec.c
parent360fac00454d331377c79ea70bca8eb778c308e3 (diff)
downloadffmpeg-6f1a9effef99696cd7ddf522123c09920f3a8753.tar.gz
sndio: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/sndio_dec.c')
-rw-r--r--libavdevice/sndio_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c
index ec8fa4126a..6059830367 100644
--- a/libavdevice/sndio_dec.c
+++ b/libavdevice/sndio_dec.c
@@ -49,7 +49,7 @@ static av_cold int audio_read_header(AVFormatContext *s1)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = s->codec_id;
st->codecpar->sample_rate = s->sample_rate;
- st->codecpar->channels = s->channels;
+ st->codecpar->ch_layout.nb_channels = s->channels;
avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */