diff options
author | Niklas Haas <git@haasn.dev> | 2022-09-27 01:35:53 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2022-09-27 01:35:53 +0200 |
commit | 1c8fdf6992eba7f7b3506c98ba79112ab071929e (patch) | |
tree | d8bfed07efcda46ef2d0f70756b63d17b51307c8 /video/out | |
parent | 6b9b032d517763262d416a54dcfe35a15c9c6cb1 (diff) | |
download | mpv-1c8fdf6992eba7f7b3506c98ba79112ab071929e.tar.bz2 mpv-1c8fdf6992eba7f7b3506c98ba79112ab071929e.tar.xz |
vo_gpu_next: use static assert for array size
This is used in other places in the code, so it should be fine.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 95c1987a7c..10a16a5f4f 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -753,7 +753,7 @@ static void info_callback(void *priv, const struct pl_render_info *info) struct mp_pass_perf *perf = &frame->perf[index]; const struct pl_dispatch_info *pass = info->pass; - assert(VO_PERF_SAMPLE_COUNT >= MP_ARRAY_SIZE(pass->samples)); + static_assert(VO_PERF_SAMPLE_COUNT >= MP_ARRAY_SIZE(pass->samples), ""); memcpy(perf->samples, pass->samples, pass->num_samples * sizeof(pass->samples[0])); perf->count = pass->num_samples; perf->last = pass->last; |