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:51:04 +0000 (12:51 +0200)
commit7997acee0542f6e0bb9ea42ff783f80b70878a2f
tree54844b5cba2147f69b2ca656e6a026fdb1f7e592
parent503322f97c5a25a020933ed4ab510697d5f5b4af
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

Conflicts:
libavcodec/mpegaudiodecheader.c
libavcodec/mpegaudiodecheader.c