summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-14 09:07:45 +0100
committerDudemanguy <random342@airmail.cc>2023-11-18 22:54:29 +0000
commit88fc9475523dc40766b04cba9bd4b5251702ded3 (patch)
treecf77aeeefa7d70b74c71e30242244f1e6286536f /player/video.c
parentd9e0ae737ab7a590527d88dd913fcc06d550df24 (diff)
downloadmpv-88fc9475523dc40766b04cba9bd4b5251702ded3.tar.bz2
mpv-88fc9475523dc40766b04cba9bd4b5251702ded3.tar.xz
vo: pass approximate frame duration in vo_frame
This information is already there, but speed adjusted. To avoid duplicating the calculation of frame duration, it's kept in the vo_frame structure.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index 85b9e75a09..48a3165f9d 100644
--- a/player/video.c
+++ b/player/video.c
@@ -923,6 +923,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
frame->ideal_frame_vsync_duration = (vsync / frame_duration) * approx_duration;
frame->num_vsyncs = num_vsyncs;
frame->display_synced = true;
+ frame->approx_duration = approx_duration;
// Adjust frame virtual vsyncs by the repeat count
if (drop_repeat > 0)