1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00
mpv/demux
wm4 c8052da7de demux: return EOF when reading from unselected stream
Normally the player doesn't read from unselected streams, so this should
be a no-op. But unfortunately, some broken files can severely confuse
the player, and assign the same demuxer stream to multiple front-end
tracks. Then selecting one of the tracks would deselect the other track,
with the end result that the demuxer stream for the selected track is
deselected. This could happen with mkv files that use the same track
number (which is of course broken). timeline_set_part() sets the tracks
using demuxer_stream_by_demuxer_id(), using the broken non-unique IDs.

The observable effect was that the player never quit, because
demux_read_packet_async() told the caller to wait some longer for new
packets. Fix by returning EOF instead.

Fixes #1481.
2015-01-16 20:22:43 +01:00
..
codec_tags.c demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
codec_tags.h demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
demux_cue.c demux_cue: use stream_peek() 2014-11-16 18:13:41 +01:00
demux_disc.c csputils: replace float[3][4] with a struct 2015-01-06 16:51:06 +01:00
demux_edl.c timeline: reject mplayer2 EDL files, change EDL header 2013-11-21 15:59:00 +01:00
demux_lavf.c Check some mallocs 2014-12-12 17:28:22 +01:00
demux_libass.c demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00
demux_mf.c demux_mf: move mf.c contents to demux_mf.c 2014-12-29 23:09:50 +01:00
demux_mkv.c demux_mkv: avoid endless loop with broken files 2015-01-12 01:33:35 +01:00
demux_playlist.c demux_playlist: unquote entries in pls playlists 2014-12-30 13:24:43 +01:00
demux_raw.c stream_cdda, demux_raw: always use s16le 2014-09-25 21:32:06 +02:00
demux_subreader.c demux: fix timestamp type for seek calls 2014-07-21 19:29:58 +02:00
demux_tv.c audio: decouple demux and audio decoder/filter sample formats 2014-09-24 22:55:50 +02:00
demux.c demux: return EOF when reading from unselected stream 2015-01-16 20:22:43 +01:00
demux.h command: add properties for current bitrate 2014-12-12 01:00:58 +01:00
ebml.c demux_mkv: fix EBML parsing checks 2015-01-12 14:31:31 +01:00
ebml.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
matroska.h demux_mkv: reduce log noise 2014-12-29 23:14:19 +01:00
packet.c demux: unbreak build with Libav 2014-11-03 22:30:07 +01:00
packet.h demux_mkv: implement audio skipping/trimming 2014-11-03 20:20:28 +01:00
stheader.h player: add stream selection by ffmpeg index 2014-10-21 13:19:20 +02:00