Commit b30f4510 authored by Michael Niedermayer's avatar Michael Niedermayer

libopencore-amr: allow sampling rates other than 8khz

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0aaf0a07
...@@ -193,7 +193,7 @@ static av_cold int amr_nb_encode_init(AVCodecContext *avctx) ...@@ -193,7 +193,7 @@ static av_cold int amr_nb_encode_init(AVCodecContext *avctx)
{ {
AMRContext *s = avctx->priv_data; AMRContext *s = avctx->priv_data;
if (avctx->sample_rate != 8000) { if (avctx->sample_rate != 8000 && avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {
av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n"); av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n");
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
} }
......
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