From 71c25df5e66154e6b8b72ebc0f8ef5ae0c40d7f6 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 11 Sep 2017 02:28:15 +0200 Subject: 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? --- video/out/vo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo.h') 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 -- cgit v1.2.3