summaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3plusdsp.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-04-16 20:04:54 +0200
committerMichael Niedermayer <[email protected]>2015-04-16 20:36:36 +0200
commitfc9514bf4dd73c85ee4b7f4dc7ca0fb4fb7ea3e1 (patch)
treecfb5be95cf4f02afa4747516421abeb8af80a0a7 /libavcodec/atrac3plusdsp.c
parente863d17e6278248b1da991090fd5f2000b4d962b (diff)
aacpsy: avoid psy_band->threshold becoming NaN
If band->thr is 0.0f, the division is undefined, making norm_fac not a number or infinity, which causes psy_band->threshold to become NaN. This is passed on to other variables until it finally reaches sce->sf_idx and is converted to an integer (-2147483648). This causes a segmentation fault when it is used as array index. Signed-off-by: Andreas Cadhalpun <[email protected]> Reviewed-by: Claudio Freire <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e224aa41917454e7b5c23d9f2541425743ce595a) Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavcodec/atrac3plusdsp.c')
0 files changed, 0 insertions, 0 deletions