mpegaudiodec: fix short_start calculation
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Sep 2012 12:38:13 +0000 (14:38 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Sep 2012 14:02:39 +0000 (16:02 +0200)
commit97cfa55eea39cef30abe14682c56c1e4e7f6f10d
tree5ab4d186dda150507a927b2abc4a253739698344
parentd16860a237ae56a21d051df6556c40de9be53faa
mpegaudiodec: fix short_start calculation

The value should be always 3, as it follows from the specification.

Fix a stack buffer overflow in exponents_from_scale_factors as reported
by asan. Thanks to Dale Curtis for the sample vector.
libavcodec/mpegaudiodec.c