mirror of https://github.com/mpv-player/mpv
vo_gpu_next: fix off by one in info_callback
Fixes invalid memory writes.
This commit is contained in:
parent
c1de4bb745
commit
695b3c51d1
|
@ -744,7 +744,7 @@ static void info_callback(void *priv, const struct pl_render_info *info)
|
||||||
{
|
{
|
||||||
struct vo *vo = priv;
|
struct vo *vo = priv;
|
||||||
struct priv *p = 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
|
return; // silently ignore clipped passes, whatever
|
||||||
|
|
||||||
struct mp_frame_perf *frame;
|
struct mp_frame_perf *frame;
|
||||||
|
|
Loading…
Reference in New Issue