#defines for strict_std_compliance and split between inofficial extensions and non...
[ffmpeg.git] / libavcodec / g726.c
index bc9374d..efc3c5f 100644 (file)
@@ -327,7 +327,7 @@ static int g726_init(AVCodecContext * avctx)
         av_log(avctx, AV_LOG_ERROR, "G726: unsupported audio format\n");
        return -1;
     }
-    if (avctx->sample_rate != 8000 && avctx->strict_std_compliance>=0) {
+    if (avctx->sample_rate != 8000 && avctx->strict_std_compliance>FF_COMPLIANCE_INOFFICIAL) {
         av_log(avctx, AV_LOG_ERROR, "G726: unsupported audio format\n");
        return -1;
     }