aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate/avformat.mak
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-04-24 12:26:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-24 15:06:54 +0200
commit537ab680534e53bd298ba3f62d4aabb56afcd403 (patch)
tree3aeb01cf561225a8797751cac14df1eecc357a3a /tests/fate/avformat.mak
parent00a452a9adea0ffb47de4b0a2a6eec1db2bf842f (diff)
downloadffmpeg-537ab680534e53bd298ba3f62d4aabb56afcd403.tar.gz
avformat/mp3: large id3 tags break concatenated file detection
If the file size is much larger than what is indicated in the XING header, the demuxer assumes it's a concatenated file, and throws away the (presumably) incorrect duration information. Unfortunately, this also triggers if the id3 tags are very large (embedded pictures and such). Then the half-baked heuristic not only breaks the duration display, but also gapless audio. Fix it by subtracting the size of the headers (the check is off by some bytes, but that doesn't matter at all). Note that there could be an arbitrary amount of tags _after_ the mp3 data, but hopefully these are not too large to trigger the heuristic in practice. Also add a warning when this happens. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/fate/avformat.mak')
0 files changed, 0 insertions, 0 deletions