Check if an mp3 header is using a reserved sample rate.
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 22 Jun 2014 17:11:32 +0000 (13:11 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 26 Jun 2014 10:36:55 +0000 (12:36 +0200)
commitfcbcc561e0fdc95a7dd48b92db53846726aec27e
tree4a15d9429f6dc0e01594239a6494699912f8573a
parent6d899d0206e91a3a74680b47ec06ef1dbc151c21
Check if an mp3 header is using a reserved sample rate.

Fixes an invalid read past the end of avpriv_mpa_freq_tab.
Fixes divide-by-zero due to sample_rate being set to 0.

Bug-Id: 705

CC:libav-stable@libav.org
(cherry picked from commit 44127546b0a81dc9dd6190739a62d48f0044c6f3)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/mpegaudiodecheader.c