summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-19 15:22:13 -0500
committerDudemanguy <random342@airmail.cc>2023-09-22 14:20:38 +0000
commita703dc10c88f42cc4b4033721b03d2ac63800f39 (patch)
tree6169d41ff5022306b1004ea5573884894e44a695 /demux
parent84d6044d2bd4b0a2b6bc8d6f3deaf37747619284 (diff)
downloadmpv-a703dc10c88f42cc4b4033721b03d2ac63800f39.tar.bz2
mpv-a703dc10c88f42cc4b4033721b03d2ac63800f39.tar.xz
options: move some demux-specific opts to demux opts
These options are only ever accessed by the demuxer and have no need to be in MPOpts. Move them to demux.c instead.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 2bf04a480b..2bc53fee42 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -96,6 +96,9 @@ struct demux_opts {
double min_secs_cache;
bool access_references;
int seekable_cache;
+ int index_mode;
+ double mf_fps;
+ char *mf_type;
bool create_ccs;
char *record_file;
int video_back_preroll;
@@ -126,6 +129,9 @@ const struct m_sub_options demux_conf = {
{"access-references", OPT_BOOL(access_references)},
{"demuxer-seekable-cache", OPT_CHOICE(seekable_cache,
{"auto", -1}, {"no", 0}, {"yes", 1})},
+ {"index", OPT_CHOICE(index_mode, {"default", 1}, {"recreate", 0})},
+ {"mf-fps", OPT_DOUBLE(mf_fps)},
+ {"mf-type", OPT_STRING(mf_type)},
{"sub-create-cc-track", OPT_BOOL(create_ccs)},
{"stream-record", OPT_STRING(record_file)},
{"video-backward-overlap", OPT_CHOICE(video_back_preroll, {"auto", -1}),
@@ -150,6 +156,8 @@ const struct m_sub_options demux_conf = {
.min_secs = 1.0,
.min_secs_cache = 1000.0 * 60 * 60,
.seekable_cache = -1,
+ .index_mode = 1,
+ .mf_fps = 1.0,
.access_references = true,
.video_back_preroll = -1,
.audio_back_preroll = -1,