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)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 23 Jun 2014 00:31:57 +0000 (20:31 -0400)
commit44127546b0a81dc9dd6190739a62d48f0044c6f3
tree5e9d4c8a11ef2d3f80f7359f7644701e45f1925b
parent463a7cde563fd805864c48a76dd1b03fc24671ed
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
libavcodec/mpegaudiodecheader.c