diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-23 00:25:27 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-23 00:29:09 +0300 |
commit | 704c980294aa8d442636e3a51121b74a6eb366bf (patch) | |
tree | d5ae86bac826d95ba3cfc32ea5d95f619a9a216c /libavcodec/aacenc.c | |
parent | a6baef6517ec68a8969f3aba04aabd324f6710dd (diff) |
avcodec/aacenc: Fix sample rate check
Fixes out of array read
Fixes CID1257803, CID1257797, CID1257789, CID1257786
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 635123e46d..aa6a56a128 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -740,7 +740,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) s->channels = avctx->channels; - ERROR_IF(i == 16, + ERROR_IF(i >= 12, "Unsupported sample rate %d\n", avctx->sample_rate); ERROR_IF(s->channels > AAC_MAX_CHANNELS, "Unsupported number of channels: %d\n", s->channels); |