]> git.sesse.net Git - ffmpeg/commit
mpegaudiodec: fix seeking.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 30 Dec 2011 21:08:21 +0000 (13:08 -0800)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 31 Dec 2011 19:19:09 +0000 (14:19 -0500)
commit464f26889c99f194d112fcf1197795d341fad38b
tree081529cdfc90718f8d26563cedfb8ab9ae031cb6
parent481a7ff5bd44dc63fcdabe34474a921269c97f99
mpegaudiodec: fix seeking.

The safe bitstream reader does not allow using skip_bits_long() to seek to a
point before the start of the buffer, which was needed by the mp3 decoder.
This change instead calculates the start point of the first valid granule and
skips to that position.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/mpegaudiodec.c