libvo-amrwbenc: allow sampling rates other than 16khz
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Nov 2012 22:47:32 +0000 (23:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 2 Nov 2012 22:47:58 +0000 (23:47 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvo-amrwbenc.c

index c463994..eaf632d 100644 (file)
@@ -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);
     }