mp3on4: require a minimum framesize.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 17 Feb 2012 23:20:27 +0000 (15:20 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 17 Feb 2012 23:32:23 +0000 (15:32 -0800)
commit3e13005cac6e076053276b515f5fcf59a3f4b65d
tree911738bcef42d26bcdbf3d5cc684133554512c8f
parentc0994e39d7fd63b4f4adfe4714fa6e41bff82a7c
mp3on4: require a minimum framesize.

If bufsize < headersize, init_get_bits() will be called with a negative
number, causing it to fail and any subsequent call to get_bits() will
crash because it reads from a NULL pointer.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/mpegaudiodec.c