1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00
mpv/demux
wm4 a4d487f5b2 stream: don't use end_pos
Stop using it in most places, and prefer STREAM_CTRL_GET_SIZE. The
advantage is that always the correct size will be used. There can be no
doubt anymore whether the end_pos value is outdated (as it happens often
with files that are being downloaded).

Some streams still use end_pos. They don't change size, and it's easier
to emulate STREAM_CTRL_GET_SIZE using end_pos, instead of adding a
STREAM_CTRL_GET_SIZE implementation to these streams.

Make sure int64_t is always used for STREAM_CTRL_GET_SIZE (it was
uint64_t before).

Remove the seek flags mess, and replace them with a seekable flag. Every
stream must set it consistently now, and an assertion in stream.c checks
this. Don't distinguish between streams that can only be forward or
backwards seeked, since we have no such stream types.
2014-05-24 16:17:51 +02:00
..
codec_tags.c demux: add "BIKb" FourCC 2014-04-08 22:59:53 +02:00
codec_tags.h demux: remove gsh field from sh_audio/sh_video/sh_sub 2013-11-23 21:37:56 +01:00
demux_cue.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
demux_edl.c timeline: reject mplayer2 EDL files, change EDL header 2013-11-21 15:59:00 +01:00
demux_lavf.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
demux_libass.c demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00
demux_mf.c stream: mp_msg conversions 2013-12-21 21:43:16 +01:00
demux_mkv.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
demux_playlist.c demux_playlist: fix m3u detection logic 2014-05-11 16:40:41 +02:00
demux_raw.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
demux_subreader.c demux_subreader: remove support for some subtitle formats 2014-05-19 01:40:41 +02:00
demux.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
demux.h mp_tags: move generic mp_tags stuff into its own .c/.h files in common/ 2014-04-13 18:03:01 +02:00
ebml.c ebml: remove length parameters from read functions 2014-01-14 17:38:51 +01:00
ebml.h ebml: remove length parameters from read functions 2014-01-14 17:38:51 +01:00
matroska.h
mf.c build: glob() is always available 2014-04-22 01:42:57 +02:00
mf.h demux: mp_msg conversions 2013-12-21 21:43:16 +01:00
ms_hdr.h
packet.h demux: export dts from demux_lavf, use it for avi 2013-11-25 23:13:01 +01:00
stheader.h demux: export video rotation parameter 2014-04-21 02:57:16 +02:00