Check mp3 header before calling avpriv_mpegaudio_decode_header().
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 22 Jun 2014 17:19:36 +0000 (13:19 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 26 Jun 2014 10:37:16 +0000 (12:37 +0200)
commit46c477c2a14b04a63ab11d31003b48fab6146a96
tree8776c78076853280068e6343188090a6b55551ad
parentfcbcc561e0fdc95a7dd48b92db53846726aec27e
Check mp3 header before calling avpriv_mpegaudio_decode_header().

As indicated in the function documentation, the header MUST be
checked prior to calling it because no consistency check is done
there.

CC:libav-stable@libav.org
(cherry picked from commit f2f2e7627f0c878d13275af5d166ec5932665e28)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/libmp3lame.c
libavformat/mp3enc.c