summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-19 05:01:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-19 13:09:02 +0100
commitfdbb6164a208df6d2665453da6d18d2cda13189b (patch)
tree8ae754d73c1afa6616229c563f7e0a1c5931d9e7 /libavcodec
parentb0d83e0dba55c854c932f9d543e6e7ecded1310e (diff)
sbr: increase f_tablelim size, it appears it was too small by 1.
Prevent out of array accesses. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sbr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sbr.h b/libavcodec/sbr.h
index 7c0afdc84c..1e413967a9 100644
--- a/libavcodec/sbr.h
+++ b/libavcodec/sbr.h
@@ -153,7 +153,7 @@ typedef struct SpectralBandReplication {
///Frequency borders for noise floors
uint16_t f_tablenoise[6];
///Frequency borders for the limiter
- uint16_t f_tablelim[29];
+ uint16_t f_tablelim[30];
unsigned num_patches;
uint8_t patch_num_subbands[6];
uint8_t patch_start_subband[6];