vo_gpu_next: fix off by one in info_callback

Fixes invalid memory writes.
This commit is contained in:
Kacper Michajłow 2023-04-28 02:20:36 +02:00 committed by Niklas Haas
parent c1de4bb745
commit 695b3c51d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;