mpv/demux
wm4 ba384fffca 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.
2015-08-26 22:47:07 +02:00
..
codec_tags.c demux: mime types are case-insensitive 2015-06-21 18:21:21 +02:00
codec_tags.h demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
cue.c demux: get rid of some bstr things 2015-06-24 14:18:51 +02:00
cue.h demux: get rid of some bstr things 2015-06-24 14:18:51 +02:00
demux.c stream: provide a stream_get_size() convenience function 2015-08-18 00:10:54 +02:00
demux.h demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_cue.c demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_disc.c player: remove higher-level remains of DVD/BD menu support 2015-08-03 23:49:14 +02:00
demux_edl.c demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_lavf.c stream: provide a stream_get_size() convenience function 2015-08-18 00:10:54 +02:00
demux_libarchive.c demux_libarchive: don't allow probing to read unlimited data 2015-08-24 22:26:07 +02:00
demux_libass.c demux: merge extradata fields 2015-06-21 18:06:14 +02:00
demux_mf.c Update license headers 2015-04-13 12:10:01 +02:00
demux_mkv.c demux_mkv: discard broken index 2015-08-26 22:47:07 +02:00
demux_mkv_timeline.c demux: remove redundant demux_chapter.name field 2015-08-12 11:11:23 +02:00
demux_playlist.c player: warn against using HLS URLs with --playlist 2015-08-04 17:51:00 +02:00
demux_rar.c demux: fix rar support for files containing DTS audio tracks 2015-03-24 21:29:09 +01:00
demux_raw.c demux: rename sh_stream.format to sh_stream.codec_tag 2015-06-21 16:56:35 +02:00
demux_subreader.c Various spelling fixes 2015-06-18 19:36:58 +02:00
demux_tv.c demux: rename sh_stream.format to sh_stream.codec_tag 2015-06-21 16:56:35 +02:00
ebml.c demux_mkv: allow integer and float elements with length 0 2015-06-24 14:34:05 +02:00
ebml.h Update license headers 2015-04-13 12:10:01 +02:00
matroska.h demux_mkv: remove indirection through defines 2015-06-19 21:41:57 +02:00
packet.c demux_mkv: refactor packet parsing 2015-02-05 21:52:07 +01:00
packet.h Update license headers 2015-04-13 12:10:01 +02:00
stheader.h demux: export forced flag 2015-06-27 22:02:24 +02:00
timeline.c demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00
timeline.h demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00