Browse Source

libfdk-aacenc: Actually check for upper bounds of cutoff

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n1.2
Derek Buitenhuis 13 years ago
parent
commit
375ef6528c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libfdk-aacenc.c

+ 1
- 1
libavcodec/libfdk-aacenc.c View 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;


Loading…
Cancel
Save