]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libfdk-aacenc.c
configure: Identify icc compiler with a less ambiguous pattern
[ffmpeg] / libavcodec / libfdk-aacenc.c
index c40bcedba5babb9efd5d462401b5dd668cd7beac..db32e9fe4a5b814805a7fc549374c82c43f540e7 100644 (file)
@@ -250,7 +250,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
     }
 
     if (avctx->cutoff > 0) {
-        if (avctx->cutoff < (avctx->sample_rate + 255) >> 8) {
+        if (avctx->cutoff < (avctx->sample_rate + 255) >> 8 || avctx->cutoff > 20000) {
             av_log(avctx, AV_LOG_ERROR, "cutoff valid range is %d-20000\n",
                    (avctx->sample_rate + 255) >> 8);
             goto error;