mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ilbc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b14fa1b95d
commit
c67dd4eff9
@ -1456,8 +1456,8 @@ static av_cold int ilbc_decode_init(AVCodecContext *avctx)
|
|||||||
else
|
else
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
avctx->channels = 1;
|
av_channel_layout_uninit(&avctx->ch_layout);
|
||||||
avctx->channel_layout = AV_CH_LAYOUT_MONO;
|
avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
|
||||||
avctx->sample_rate = 8000;
|
avctx->sample_rate = 8000;
|
||||||
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
|
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user