diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-04-28 02:20:36 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-05-25 16:25:33 +0200 |
commit | 695b3c51d1c79c42ae6754942c56caa2e08800d8 (patch) | |
tree | df380b64d32d805bf5a5e446d914b90ff3a3b6a8 /video | |
parent | c1de4bb7454db8fbb61e337b58923652602524dd (diff) | |
download | mpv-695b3c51d1c79c42ae6754942c56caa2e08800d8.tar.bz2 mpv-695b3c51d1c79c42ae6754942c56caa2e08800d8.tar.xz |
vo_gpu_next: fix off by one in info_callback
Fixes invalid memory writes.
Diffstat (limited to 'video')
-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 3b63a941e6..e614db2fea 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -744,7 +744,7 @@ static void info_callback(void *priv, const struct pl_render_info *info) { struct vo *vo = priv; struct priv *p = vo->priv; - if (info->index > VO_PASS_PERF_MAX) + if (info->index >= VO_PASS_PERF_MAX) return; // silently ignore clipped passes, whatever struct mp_frame_perf *frame; |