From 3bddc16431f8d2e22b03154465e9c62bafd328f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Jul 2013 02:06:58 +0200 Subject: 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. --- demux/demux_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux_lavf.c') 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; -- cgit v1.2.3