diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:57:36 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:38 -0300 |
commit | 6ad44980ae750e65b198fa6fe0c6a4c913df2be4 (patch) | |
tree | 1b7369687d16081a250ce06bd65e290c130b2947 /libavformat/wvdec.c | |
parent | b0e566119499482034edb282b6d92e102514318e (diff) | |
download | ffmpeg-6ad44980ae750e65b198fa6fe0c6a4c913df2be4.tar.gz |
wv: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/wvdec.c')
-rw-r--r-- | libavformat/wvdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c index 0d5a86953d..61a683a85e 100644 --- a/libavformat/wvdec.c +++ b/libavformat/wvdec.c @@ -256,8 +256,7 @@ static int wv_read_header(AVFormatContext *s) AV_WL16(st->codecpar->extradata, wc->header.version); st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_WAVPACK; - st->codecpar->channels = wc->chan; - st->codecpar->channel_layout = wc->chmask; + av_channel_layout_from_mask(&st->codecpar->ch_layout, wc->chmask); st->codecpar->sample_rate = wc->rate; st->codecpar->bits_per_coded_sample = wc->bpp; avpriv_set_pts_info(st, 64, 1, wc->rate); |