summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-26 02:06:58 +0200
committerwm4 <wm4@nowhere>2013-07-26 02:11:34 +0200
commit3bddc16431f8d2e22b03154465e9c62bafd328f3 (patch)
tree75711353b4124a6b9efea3e75ccb882981865112 /demux/demux_lavf.c
parentfb67770ed697ed4898f9019640bb389f2f6f588e (diff)
downloadmpv-3bddc16431f8d2e22b03154465e9c62bafd328f3.tar.bz2
mpv-3bddc16431f8d2e22b03154465e9c62bafd328f3.tar.xz
options: simplify --correct-pts handling
Remove the (now unused) code for determining correct-pts mode based on the demuxer in use. Change its description in the manpage to reflect what this option does now.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 350fe54b66..21b1cf8624 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -531,7 +531,7 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
demuxer->timestamp_type = TIMESTAMP_TYPE_SORT;
} else {
int mode = lavfdopts->genptsmode;
- if (mode == 0 && opts->user_correct_pts != 0)
+ if (mode == 0 && opts->correct_pts)
mode = demuxer->stream->uncached_type == STREAMTYPE_DVD ? 2 : 1;
if (mode == 1)
avfc->flags |= AVFMT_FLAG_GENPTS;