diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2013-02-09 23:03:02 +0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2013-02-11 19:15:42 +0400 |
commit | 375ef6528c9dd2db7f9881e232cb0ec3aa16970d (patch) | |
tree | 02c048f94349fc4b9f2ef0f45553e9236ec4a601 /libavcodec/libfdk-aacenc.c | |
parent | ab8f1a698990c33afb4c1c6ae5af3d6de4f696cb (diff) |
libfdk-aacenc: Actually check for upper bounds of cutoff
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libfdk-aacenc.c')
-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 c40bcedba5..db32e9fe4a 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; |