aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/svs.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:49:24 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:37 -0300
commitd38166a83247f932ae3b22f64d97726c5e066feb (patch)
tree2fc31ea8d1e1a867350915e82ab59a54d7b48476 /libavformat/svs.c
parentebe8ba131fcd65f0d2bdadfd39c81dea352b2406 (diff)
downloadffmpeg-d38166a83247f932ae3b22f64d97726c5e066feb.tar.gz
svs: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/svs.c')
-rw-r--r--libavformat/svs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/svs.c b/libavformat/svs.c
index e5300203f5..b91d29f5a6 100644
--- a/libavformat/svs.c
+++ b/libavformat/svs.c
@@ -53,8 +53,7 @@ static int svs_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX;
- st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO;
- st->codecpar->channels = 2;
+ st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
st->codecpar->sample_rate = av_rescale_rnd(pitch, 48000, 4096, AV_ROUND_INF);
st->codecpar->block_align = 32;
st->start_time = 0;