mpv/demux
wm4 b505cab597 dvdnav: fix time display when starting in the middle of the DVD
libdvdnav can actually jump into the middle of the DVD (e.g. scene
selection menus do that). Then time display is incorrect: we start from
0, even though playback time is somewhere else. This really matters when
seeking. If the display time mismatches, a small relative seek will
apparently jump to the beginning of the movie.

Fix this by initializing the PTS stuff on opening. We have to do this
after some small amount of data has been read from the stream (because
libdvdnav is crap and doesn't always update the time between seeks and
the first read; also see STREAM_CTRL_GET_CURRENT_TIME remarks in
cache.c; although this was not observed when testing with scene
selection menus). On the other hand, we want to do it before opening the
demuxer, because that will read large amounts of data and likely will
change the stream position.

Also see commit 49813670.
2014-07-13 20:05:25 +02:00
..
codec_tags.c
codec_tags.h
demux.c demux: remove accurate_seek field 2014-07-08 22:20:39 +02:00
demux.h demux: remove accurate_seek field 2014-07-08 22:20:39 +02:00
demux_cue.c
demux_disc.c dvdnav: fix time display when starting in the middle of the DVD 2014-07-13 20:05:25 +02:00
demux_edl.c
demux_lavf.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +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
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
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: make replaygain per-track 2014-07-05 17:07:14 +02:00