avformat/mp3dec: fix gapless audio when seeking in CBR mode
authorwm4 <nfxjfg@googlemail.com>
Fri, 17 Apr 2015 15:27:00 +0000 (17:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Apr 2015 15:48:22 +0000 (17:48 +0200)
commit92eef26e67ea8d2265854594344f8db17b9ce299
treec5c3ce523b06284aa3f60f1780a9dfca2ce84cd0
parent4efc0e6451fa77e1e1d5b4b3873917c1916765f1
avformat/mp3dec: fix gapless audio when seeking in CBR mode

Removing a bunch of questionable hacks makes it work. These hacks
apparently try to make concatenated mp3s with Lame headers seekable,
which doesn't make too much sense anyway. The main change is that we
trust the Xing header file size field now (the same field is used for
seeking with Xing TOC). Note that a mp3 might contain an unknown number
of unsupported additional tags, so we can't reliably compute this size
manually.

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