summaryrefslogtreecommitdiffstats
path: root/player/lua/ytdl_hook.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-26 22:47:07 +0200
committerwm4 <wm4@nowhere>2015-08-26 22:47:07 +0200
commitba384fffca982465e63c3ffe3a3fb34c08e75de2 (patch)
treebdce42a10ea223eacbaa5e6509927e39ebf945de /player/lua/ytdl_hook.lua
parentdae464a4910e552e51357f697efdad17ba08b900 (diff)
downloadmpv-ba384fffca982465e63c3ffe3a3fb34c08e75de2.tar.bz2
mpv-ba384fffca982465e63c3ffe3a3fb34c08e75de2.tar.xz
demux_mkv: discard broken index
Add a simplistic heuristic for detecting broken indexes. This includes indexes with very few elements (apparently libavformat sometimes writes such indexes, or used to), and indexes with broken timestamps. The latter was apparently produced by very old HandBrake versions: | + Muxing application: libmkv 0.6.1.2 | + Writing application: HandBrake 0.9.1 These broken files seem to be common enough that libavformat added a workaround for them in 2008 (and maybe again in 2015). Apparently all timestamps are multiplied with the file's tc_scale twice, and FFmpeg attempts to fix them. We should throw away the whole thing.
Diffstat (limited to 'player/lua/ytdl_hook.lua')
0 files changed, 0 insertions, 0 deletions