sbr: increase f_tablelim size, it appears it was too small by 1.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 19 Nov 2012 04:01:01 +0000 (05:01 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 19 Nov 2012 12:09:02 +0000 (13:09 +0100)
Prevent out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/sbr.h

index 7c0afdc..1e41396 100644 (file)
@@ -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];