diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-29 09:36:27 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:42 -0300 |
commit | c67dd4eff95b986b45937f1589e68a10d3b8fee8 (patch) | |
tree | be1925492347ae686a8c27a79aca4cc4cd19f1f3 | |
parent | b14fa1b95d33b92fd554a665da4b60b9ef62830e (diff) | |
download | ffmpeg-c67dd4eff95b986b45937f1589e68a10d3b8fee8.tar.gz |
ilbc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/ilbcdec.c | 4 |
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; |