summaryrefslogtreecommitdiff
path: root/libavcodec/wmavoice.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-06-04 13:03:50 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:45 -0300
commit3c933af4934fa7e1119b8d684d361b85530bfe31 (patch)
tree15471681eda25ce664c942d3b57e12347d5e6fb8 /libavcodec/wmavoice.c
parent03ba5cf321e42e3a42c283ed717fc812b760e039 (diff)
wma: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/wmavoice.c')
-rw-r--r--libavcodec/wmavoice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index e096b8029d..47fc0947c5 100644
--- a/libavcodec/wmavoice.c
+++ b/libavcodec/wmavoice.c
@@ -475,8 +475,8 @@ static av_cold int wmavoice_decode_init(AVCodecContext *ctx)
2 * (s->block_conv_table[1] - 2 * s->min_pitch_val);
s->block_pitch_nbits = av_ceil_log2(s->block_pitch_range);
- ctx->channels = 1;
- ctx->channel_layout = AV_CH_LAYOUT_MONO;
+ av_channel_layout_uninit(&ctx->ch_layout);
+ ctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
ctx->sample_fmt = AV_SAMPLE_FMT_FLT;
return 0;