summaryrefslogtreecommitdiff
path: root/libavformat/adp.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:29 -0300
commitced933a394a86cbc35b178c5ab2187ff5283deda (patch)
treec677496920eddf52d6957f05a040701f595622da /libavformat/adp.c
parent06bc48a87843f51432f62c8a49a666245054907a (diff)
adp: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/adp.c')
-rw-r--r--libavformat/adp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/adp.c b/libavformat/adp.c
index 6d5f9d274e..c9a5a04507 100644
--- a/libavformat/adp.c
+++ b/libavformat/adp.c
@@ -55,8 +55,7 @@ static int adp_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_DTK;
- 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 = 48000;
st->start_time = 0;
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL)