summaryrefslogtreecommitdiff
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:37 -0300
commite968ae81f2dfd035436eabc79f21958824f2a290 (patch)
tree3445ddf2d4d5fcee6a78e2c631d3f4ffc07fc469
parent3c659bc43e0b5c3e15f2cefdc4b0566c1c4dc554 (diff)
sds: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/sdsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdsdec.c b/libavformat/sdsdec.c
index 073dadafbb..f98096dca9 100644
--- a/libavformat/sdsdec.c
+++ b/libavformat/sdsdec.c
@@ -110,7 +110,7 @@ static int sds_read_header(AVFormatContext *ctx)
avio_skip(pb, 11);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
- st->codecpar->channels = 1;
+ st->codecpar->ch_layout.nb_channels = 1;
st->codecpar->sample_rate = sample_period ? 1000000000 / sample_period : 16000;
st->duration = (avio_size(pb) - 21) / (127) * s->size / 4;