From 9d57e7d23cff215076f24c4c25ce48e9c8e5f3d4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 30 Jan 2015 21:10:39 +0100 Subject: 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. --- player/video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 442ae0d19f..9d89fdf1ed 100644 --- a/player/video.c +++ b/player/video.c @@ -681,9 +681,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; } -- cgit v1.2.3