avformat/aacdec: fix demuxing of small frames
authorJames Almer <jamrial@gmail.com>
Thu, 25 Apr 2019 22:04:01 +0000 (19:04 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 6 May 2019 00:40:31 +0000 (21:40 -0300)
commitd88193c2196cf5342424aaa7a44b046c71c2527a
treefbebb36c3ca8e4c37f73d8195578f38443a99ffd
parentd7d82cfcd4394fde5f9b53ab0251ce1b55b674a7
avformat/aacdec: fix demuxing of small frames

10 bytes (id3v2 header amount of bytes) were being read before any checks
were made on the bitstream. The result was that we were overreading into
the next frame if the current one was 8 or 9 bytes long.

Fixes tickets #7271 and #7869.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/aacdec.c