diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-01-25 21:03:51 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-27 05:12:36 +0000 |
commit | dd491c7c61508d72e3694ffa743b64c8dd938eff (patch) | |
tree | 7c3ebcdcea7ff0a2e005d5771a224796ad894145 /video/out/vo.h | |
parent | c243946338dcdcdbed9cfdc9d662d5612649932d (diff) | |
download | mpv-dd491c7c61508d72e3694ffa743b64c8dd938eff.tar.bz2 mpv-dd491c7c61508d72e3694ffa743b64c8dd938eff.tar.xz |
vo: change vo_frame duration to double
32-bit signed integer can hold ~2.1s stored as nanoseconds. While frame
duration doesn't make sense to be this long, the existing clamp is to
10s. Change type to double, which is consistent with other fields in
vo_frame.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index e9e2f02901..895d6039fe 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -211,7 +211,7 @@ struct vo_frame { // If 0, present immediately. int64_t pts; // Approximate frame duration, in ns. - int duration; + double duration; // Realtime of estimated distance between 2 vsync events. double vsync_interval; // "ideal" display time within the vsync |