Skip to content
Snippets Groups Projects
Commit 4ad6ef00 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

libvo-amrwbenc: allow sampling rates other than 16khz

parent b30f4510
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ static av_cold int amr_wb_encode_init(AVCodecContext *avctx)
{
AMRWBContext *s = avctx->priv_data;
if (avctx->sample_rate != 16000) {
if (avctx->sample_rate != 16000 && avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {
av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n");
return AVERROR(ENOSYS);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment