diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-14 09:07:45 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-18 22:54:29 +0000 |
commit | 88fc9475523dc40766b04cba9bd4b5251702ded3 (patch) | |
tree | cf77aeeefa7d70b74c71e30242244f1e6286536f /player/video.c | |
parent | d9e0ae737ab7a590527d88dd913fcc06d550df24 (diff) | |
download | mpv-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.c | 1 |
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) |