Browse Source

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>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
fdbb6164a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/sbr.h

+ 1
- 1
libavcodec/sbr.h View 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];


Loading…
Cancel
Save