summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-04 19:00:01 +0100
committerwm4 <wm4@nowhere>2014-01-06 20:22:26 +0100
commit29c74b42b4f9edc6a197ee884d723f8901c8de97 (patch)
tree149c1fad7311ec5e14092cca9f891192b8123942 /demux/demux.h
parent4b2a3e50e25f488e170c2a77c048d38b6fb3f85a (diff)
downloadmpv-29c74b42b4f9edc6a197ee884d723f8901c8de97.tar.bz2
mpv-29c74b42b4f9edc6a197ee884d723f8901c8de97.tar.xz
demux_subreader: reject file if not opened by --sub
demux_subreader.c contains the old MPlayer subtitle parser, and I have absolutely no confidence in this (very crappy) code. There might be one or two security risks associated with running that code on arbitrary input.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 7a663684f9..6f9437f2d3 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -152,6 +152,7 @@ struct demuxer_params {
int matroska_wanted_segment;
bool *matroska_was_valid;
struct ass_library *ass_library;
+ bool expect_subtitle;
};
typedef struct demuxer {