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 16:53:10 +0000 (13:53 -0300)
commit82e1fb864b37a03b63aa43456d0b9f744bb409f5
tree4a4a07b0f018e066f36a101bbc7ff36df11ebbc5
parentfc630d7b437b754cc9d4a848d2b32b0ff8c1a7d7
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>
(cherry picked from commit d88193c2196cf5342424aaa7a44b046c71c2527a)
libavformat/aacdec.c