• Michael Niedermayer's avatar
    mp3demux: Rewrite xing TOC based seeking · b6267901
    Michael Niedermayer authored
    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: 's avatarMichael Niedermayer <michaelni@gmx.at>
    b6267901
mp3dec.c 9.27 KB