summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-30 21:10:39 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-03 14:36:36 +0900
commitd0c3df3276d93b2d00240e169d7e7a861ed7f79e (patch)
tree3ab98b8a236f45f2a5659b61a86d2cb7eb83e37e
parente8df9ec4b77530ea6311ec847886dd82e798759e (diff)
downloadmpv-d0c3df3276d93b2d00240e169d7e7a861ed7f79e.tar.bz2
mpv-d0c3df3276d93b2d00240e169d7e7a861ed7f79e.tar.xz
player: use correct type for some relative times
We use double for these things everywhere, just this code didn't. It likely doesn't matter much, and this code is for an optional feature too.
-rw-r--r--player/video.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c
index c8d8e2af85..0e142ddd0d 100644
--- a/player/video.c
+++ b/player/video.c
@@ -658,9 +658,9 @@ static void update_avsync_before_frame(struct MPContext *mpctx)
* This is badly implemented; the behavior of the smoothing
* now undesirably depends on how often this code runs
* (mainly depends on video frame rate). */
- float predicted = mpctx->delay / opts->playback_speed +
- mpctx->time_frame;
- float difference = buffered_audio - predicted;
+ double predicted = mpctx->delay / opts->playback_speed +
+ mpctx->time_frame;
+ double difference = buffered_audio - predicted;
buffered_audio = predicted + difference / opts->autosync;
}