From 1bfae45a88ac7c24b74a6f7ca6eb4aa27d20c653 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 22 Jun 2013 01:31:25 +0200 Subject: core: don't set correct-pts mode randomly The default correct-pts mode depended on which demuxer was opened last. Often this is the subtitle demuxer. The correct-pts mode should be decided on the demuxer for video instead. --- demux/demux.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index 379a74f654..369e7f3226 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -981,11 +981,6 @@ static struct demuxer *open_given_type(struct MPOpts *opts, demuxer = demux2; } demuxer->file_format = fformat; - opts->correct_pts = opts->user_correct_pts; - if (opts->correct_pts < 0) - opts->correct_pts = - demux_control(demuxer, DEMUXER_CTRL_CORRECT_PTS, - NULL) == DEMUXER_CTRL_OK; if (stream_manages_timeline(demuxer->stream)) { // Incorrect, but fixes some behavior with DVD/BD demuxer->ts_resets_possible = false; -- cgit v1.2.3