diff options
-rw-r--r-- | DOCS/man/options.rst | 6 | ||||
-rw-r--r-- | demux/demux_lavf.c | 5 |
2 files changed, 0 insertions, 11 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 89d9c56eec..9c66ca35cb 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2763,12 +2763,6 @@ Demuxer imperfect behavior from libavformat demuxers. Passing ``no`` disables these. For debugging and testing only. -``--demuxer-lavf-genpts-mode=<no|lavf>`` - Mode for deriving missing packet PTS values from packet DTS. ``lavf`` - enables libavformat's ``genpts`` option. ``no`` disables it. This used - to be enabled by default, but then it was deemed as not needed anymore. - Enabling this might help with timestamp problems, or make them worse. - ``--demuxer-lavf-o=<key>=<value>[,<key>=<value>[,...]]`` Pass AVOptions to libavformat demuxer. diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 41c334d309..ee81ff2773 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -77,7 +77,6 @@ struct demux_lavf_opts { char *format; char **avopts; int hacks; - int genptsmode; char *sub_cp; int rtsp_transport; }; @@ -96,8 +95,6 @@ const struct m_sub_options demux_lavf_conf = { OPT_INTRANGE("demuxer-lavf-probescore", probescore, 0, 1, AVPROBE_SCORE_MAX), OPT_FLAG("demuxer-lavf-hacks", hacks, 0), - OPT_CHOICE("demuxer-lavf-genpts-mode", genptsmode, 0, - ({"lavf", 1}, {"no", 0})), OPT_KEYVALUELIST("demuxer-lavf-o", avopts, 0), OPT_STRING("sub-codepage", sub_cp, 0), OPT_CHOICE("rtsp-transport", rtsp_transport, 0, @@ -814,8 +811,6 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check) if (!avfc) return -1; - if (lavfdopts->genptsmode) - avfc->flags |= AVFMT_FLAG_GENPTS; if (index_mode != 1) avfc->flags |= AVFMT_FLAG_IGNIDX; |