summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-25 23:07:22 +0100
committerwm4 <wm4@nowhere>2013-11-25 23:07:22 +0100
commit51bce52d57467cffba040cf926708befb3d6633b (patch)
tree6390854ab6b32a7dae2cbf49a9b0561e79265151
parentded99df98ad2de728e584516b0677973259618e0 (diff)
downloadmpv-51bce52d57467cffba040cf926708befb3d6633b.tar.bz2
mpv-51bce52d57467cffba040cf926708befb3d6633b.tar.xz
player: warn if PTS association mode switches
This normally shouldn't happen. It does happen with VfW-muxed mkv files, and would normally happen with avi files (except that we force the correct association mode using an explicit hack for avi). This is usually prepended by warnings like: Decreasing video pts: 0.125000 < 0.167000 and after the switch, there should be no warnings anymore. Background: avi likes to use DTS for timestamps instead of PTS. Basically, there are no proper timestamps in the file, only frame numbers. And Matroska is insane and stores the made-up DTS instead of a proper PTS. This will be handled properly later.
-rw-r--r--mpvcore/player/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c
index 5ba9d5624b..9ff6c8ec3d 100644
--- a/mpvcore/player/video.c
+++ b/mpvcore/player/video.c
@@ -374,8 +374,8 @@ static void determine_frame_pts(struct MPContext *mpctx)
}
if (probcount1 >= probcount2 * 1.5 + 2) {
d_video->pts_assoc_mode = 3 - d_video->pts_assoc_mode;
- MP_VERBOSE(mpctx, "Switching to pts association mode "
- "%d.\n", d_video->pts_assoc_mode);
+ MP_WARN(mpctx, "Switching to pts association mode "
+ "%d.\n", d_video->pts_assoc_mode);
}
}
d_video->pts = d_video->pts_assoc_mode == 1 ?