summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorMohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>2020-08-17 00:46:13 +0300
committerwm4 <1387750+wm4@users.noreply.github.com>2020-08-19 17:22:53 +0200
commitffa9aaa2e458dcac3658a16c4d1fb14755de0ebd (patch)
tree1350515bedf81ad65ba4dea43999429009e55ed2 /wscript_build.py
parent19aa5659f6293aacb498fd3e8057289a69dd7391 (diff)
downloadmpv-ffa9aaa2e458dcac3658a16c4d1fb14755de0ebd.tar.bz2
mpv-ffa9aaa2e458dcac3658a16c4d1fb14755de0ebd.tar.xz
stream: Implement slice:// for reading slices of streams
Add support for reading a byte range from a stream via the `slice://` protocol. Syntax is `slice://start[-end]@URL` where end is a maximum (read until end or eof). Size suffixes support in `m_option` is reused so they can be used with start/end. This can be very useful with e.g. large MPEGTS streams with corruption or time-stamp jumps or other issues in them. Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index c57619b353..41c8e60f27 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -360,6 +360,7 @@ def build(ctx):
( "stream/stream_cb.c" ),
( "stream/stream_cdda.c", "cdda" ),
( "stream/stream_concat.c" ),
+ ( "stream/stream_slice.c" ),
( "stream/stream_dvb.c", "dvbin" ),
( "stream/stream_dvdnav.c", "dvdnav" ),
( "stream/stream_edl.c" ),