diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2013-02-09 14:03:02 -0500 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2013-02-11 10:20:33 -0500 |
commit | c177f2ec4a21d62fdefd925ad69c24a2f9dad303 (patch) | |
tree | 4e664f7ef4784c2c83dc4b158e628c08307aab3c | |
parent | 8160864b00271214ab7b144e70e512ba8a76ffdc (diff) | |
download | ffmpeg-c177f2ec4a21d62fdefd925ad69c24a2f9dad303.tar.gz |
libfdk-aacenc: Actually check for upper bounds of cutoff
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavcodec/libfdk-aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index 06576aabae..d76b21541e 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -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; |