Commit 0aaf0a07 authored by Michael Niedermayer's avatar Michael Niedermayer

libopencore-amrdec: allow sampling rates other than 8khz

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2c1e9383
......@@ -31,7 +31,8 @@ static void amr_decode_fix_avctx(AVCodecContext *avctx)
{
const int is_amr_wb = 1 + (avctx->codec_id == AV_CODEC_ID_AMR_WB);
avctx->sample_rate = 8000 * is_amr_wb;
if (!avctx->sample_rate)
avctx->sample_rate = 8000 * is_amr_wb;
if (avctx->channels > 1) {
av_log_missing_feature(avctx, "multi-channel AMR", 0);
......
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