summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/ilbcdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c
index 4d0465087f..27423d12f8 100644
--- a/libavcodec/ilbcdec.c
+++ b/libavcodec/ilbcdec.c
@@ -1456,8 +1456,8 @@ static av_cold int ilbc_decode_init(AVCodecContext *avctx)
else
return AVERROR_INVALIDDATA;
- avctx->channels = 1;
- avctx->channel_layout = AV_CH_LAYOUT_MONO;
+ av_channel_layout_uninit(&avctx->ch_layout);
+ avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
avctx->sample_rate = 8000;
avctx->sample_fmt = AV_SAMPLE_FMT_S16;