mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-23 03:18:35 +08:00
options: remove --ignore-start
This was used only with demux_avi.
This commit is contained in:
@@ -1044,11 +1044,6 @@
|
||||
This option only works if the underlying media supports seeking
|
||||
(i.e. not with stdin, pipe, etc).
|
||||
|
||||
``--ignore-start``
|
||||
Matters with the builtin AVI demuxer only, which is not enabled by default.
|
||||
Ignore the specified starting time for streams in AVI files. This
|
||||
nullifies stream delays.
|
||||
|
||||
``--include=<configuration-file>``
|
||||
Specify configuration file to be parsed after the default ones.
|
||||
|
||||
|
||||
@@ -4298,15 +4298,6 @@ goto_reopen_demuxer: ;
|
||||
|
||||
//================ SETUP STREAMS ==========================
|
||||
|
||||
if (mpctx->sh_video) {
|
||||
if (!opts->ignore_start)
|
||||
mpctx->audio_delay += mpctx->sh_video->stream_delay;
|
||||
}
|
||||
if (mpctx->sh_audio) {
|
||||
if (!opts->ignore_start)
|
||||
mpctx->audio_delay -= mpctx->sh_audio->stream_delay;
|
||||
}
|
||||
|
||||
if (opts->force_fps && mpctx->sh_video) {
|
||||
mpctx->sh_video->fps = opts->force_fps;
|
||||
mpctx->sh_video->frametime = 1.0f / mpctx->sh_video->fps;
|
||||
|
||||
@@ -430,9 +430,6 @@ const m_option_t mp_opts[] = {
|
||||
// set a-v distance
|
||||
OPT_FLOATRANGE("audio-delay", audio_delay, 0, -100.0, 100.0),
|
||||
|
||||
// ignore header-specified delay (dwStart)
|
||||
OPT_FLAG("ignore-start", ignore_start, 0),
|
||||
|
||||
// ------------------------- codec/vfilter options --------------------
|
||||
|
||||
{"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
||||
|
||||
@@ -105,7 +105,6 @@ typedef struct MPOpts {
|
||||
float hr_seek_demuxer_offset;
|
||||
float audio_delay;
|
||||
float default_max_pts_correction;
|
||||
int ignore_start;
|
||||
int autosync;
|
||||
int softsleep;
|
||||
int frame_dropping;
|
||||
|
||||
@@ -78,9 +78,6 @@ struct sh_stream {
|
||||
/* usually a FourCC, exact meaning depends on gsh->format */ \
|
||||
unsigned int format; \
|
||||
int initialized; \
|
||||
/* number of seconds stream should be delayed \
|
||||
* (according to dwStart or similar) */ \
|
||||
float stream_delay; \
|
||||
/* audio: last known pts value in output from decoder \
|
||||
* video: predicted/interpolated PTS of the current frame */ \
|
||||
double pts; \
|
||||
|
||||
Reference in New Issue
Block a user