Commit 2c1e9383 authored by Michael Niedermayer's avatar Michael Niedermayer

amrwbdec: allow sample rates other than 16khz

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d8aaec38
...@@ -105,7 +105,8 @@ static av_cold int amrwb_decode_init(AVCodecContext *avctx) ...@@ -105,7 +105,8 @@ static av_cold int amrwb_decode_init(AVCodecContext *avctx)
avctx->channels = 1; avctx->channels = 1;
avctx->channel_layout = AV_CH_LAYOUT_MONO; avctx->channel_layout = AV_CH_LAYOUT_MONO;
avctx->sample_rate = 16000; if (!avctx->sample_rate)
avctx->sample_rate = 16000;
avctx->sample_fmt = AV_SAMPLE_FMT_FLT; avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
av_lfg_init(&ctx->prng, 1); av_lfg_init(&ctx->prng, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment