]> git.sesse.net Git - ffmpeg/commit
mp3demux: Rewrite xing TOC based seeking
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 00:42:16 +0000 (02:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 01:13:46 +0000 (03:13 +0200)
commitb6267901c466c482b2f1af3578b0a6d88265d144
tree1fce206dc13a3d14c379f7f232d229351f03227a
parent7696a392e2d28efd1af6271f86b67b6ec4fa6408
mp3demux: Rewrite xing TOC based seeking

The libav code depends on mp3 startcodes only occuring at the start of
frames. But there is nothing in mp3 that prevents them occuring elsewhere
by chance. Thus the code would fail randomly, the new code searches for 3
consecutive valid frames. If this turns out to be still insufficient the
number can be raised further, or additional checks added.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mp3dec.c