1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/demux
wm4 1942e424e3 demux: fix opening pipes with demux_lavf
We told the demuxer that a pipe (if stream cache is enabled) is
seekable. This is because the stream cache is technically seekable, it's
just that seeking may fail at runtime if a non-cached byte range is
requested.

This caused libavformat to issue seeks on initialization (at least when
piping mp4 youtube videos). Initialization failed completely after
spamming tons of error messages.

So, if an unseekable stream is cached, tell the demuxer that the file is
not seekable. This gets reversed later (when printing a message about
caching an unseekable stream), so the user can still try his luck by
issuing a seek command. The important part is that libavformat
initialization will not take code paths that will unnecessarily seek for
whatever reasons.

CC: @mpv-player/stable: regression from 0.3.x
2014-07-18 16:16:05 +02:00
..
codec_tags.c demux: add "BIKb" FourCC 2014-04-08 22:59:53 +02:00
codec_tags.h
demux_cue.c
demux_disc.c dvd, bd: fix A/V sync 2014-07-18 01:26:46 +02:00
demux_edl.c
demux_lavf.c demux_lavf: reverse rotation direction with new API 2014-07-17 00:30:03 +02:00
demux_libass.c
demux_mf.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
demux_mkv.c demux: minor simplification 2014-07-06 19:02:21 +02:00
demux_playlist.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
demux_raw.c demux: minor simplification to internal API 2014-07-05 17:07:15 +02:00
demux_subreader.c demux: minor simplification to internal API 2014-07-05 17:07:15 +02:00
demux_tv.c demux: minor simplification 2014-07-06 19:02:21 +02:00
demux.c demux: fix opening pipes with demux_lavf 2014-07-18 16:16:05 +02:00
demux.h demux: add function to read packets asychronously 2014-07-18 15:08:31 +02:00
ebml.c demux: minor cleanups 2014-07-01 21:53:23 +02:00
ebml.h demux: minor cleanups 2014-07-01 21:53:23 +02:00
matroska.h demux_mkv: add S_DVBSUB 2014-06-17 22:44:27 +02:00
mf.c Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
mf.h
ms_hdr.h
packet.c Remove stream_pts stuff 2014-07-06 19:05:59 +02:00
packet.h Remove stream_pts stuff 2014-07-06 19:05:59 +02:00
stheader.h demux: add a demuxer thread 2014-07-16 23:25:56 +02:00