diff options
author | James Almer <jamrial@gmail.com> | 2022-01-17 13:08:34 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | 6f1a9effef99696cd7ddf522123c09920f3a8753 (patch) | |
tree | 1da16a6dbc6c21301c1723148e579f5744d4c5c5 /libavdevice/sndio_enc.c | |
parent | 360fac00454d331377c79ea70bca8eb778c308e3 (diff) | |
download | ffmpeg-6f1a9effef99696cd7ddf522123c09920f3a8753.tar.gz |
sndio: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/sndio_enc.c')
-rw-r--r-- | libavdevice/sndio_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/sndio_enc.c b/libavdevice/sndio_enc.c index 2e698d7c35..a595438d8a 100644 --- a/libavdevice/sndio_enc.c +++ b/libavdevice/sndio_enc.c @@ -36,7 +36,7 @@ static av_cold int audio_write_header(AVFormatContext *s1) st = s1->streams[0]; s->sample_rate = st->codecpar->sample_rate; - s->channels = st->codecpar->channels; + s->channels = st->codecpar->ch_layout.nb_channels; ret = ff_sndio_open(s1, 1, s1->url); |