mpegaudiodec: fix short_start calculation
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Sep 2012 12:38:13 +0000 (14:38 +0200)
committerReinhard Tartler <siretart@tauware.de>
Fri, 4 Jan 2013 06:43:38 +0000 (07:43 +0100)
commitec6719f6551db6e93d8af9bffdaf0163b5d59b5b
treebfd75c7946bb594293046fec68f9836ae90bff14
parent11ecd8574a2edd482c687123f374f22c3390c6dc
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.
(cherry picked from commit 97cfa55eea39cef30abe14682c56c1e4e7f6f10d)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/mpegaudiodec.c