From d054a7181fb92bdd2703d0301800fd52daf3cf86 Mon Sep 17 00:00:00 2001 From: sda89ha9 Date: Fri, 9 Sep 2016 18:56:45 +0200 Subject: player: fix average frame duration calculation --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 342ff66ce4..5e87564690 100644 --- a/player/video.c +++ b/player/video.c @@ -986,7 +986,7 @@ double calc_average_frame_duration(struct MPContext *mpctx) double total = 0; int num = 0; for (int n = 0; n < mpctx->num_past_frames; n++) { - double dur = mpctx->past_frames[0].approx_duration; + double dur = mpctx->past_frames[n].approx_duration; if (dur <= 0) continue; total += dur; -- cgit v1.2.3