diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-11 02:28:15 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-09-11 02:42:50 +0200 |
commit | 71c25df5e66154e6b8b72ebc0f8ef5ae0c40d7f6 (patch) | |
tree | 50729638e102cf5c9ce23bba0b5dcbaeeb85b0d4 /video/out/vo.h | |
parent | 8a4f2f0ac001703f0fcb921067d97584df20e2fc (diff) | |
download | mpv-71c25df5e66154e6b8b72ebc0f8ef5ae0c40d7f6.tar.bz2 mpv-71c25df5e66154e6b8b72ebc0f8ef5ae0c40d7f6.tar.xz |
vo_opengl: refactor timer_pool_measure (again)
Instead of relying on power-of-two buffer sizes and unsigned overflow,
make this code more robust (and also cleaner).
Why can't C get a real modulo operator?
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 36591cb00d..50fdab6db4 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -143,7 +143,7 @@ struct voctrl_playback_state { }; // VOCTRL_PERFORMANCE_DATA -#define VO_PERF_SAMPLE_COUNT 256u +#define VO_PERF_SAMPLE_COUNT 256 struct mp_pass_perf { // times are all in nanoseconds |