diff options
Diffstat (limited to 'libvo/vo_vdpau.c')
-rw-r--r-- | libvo/vo_vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index c1c8e8facd..a9df1b82a4 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -1445,7 +1445,7 @@ static struct vdpau_render_state *get_surface(struct vo *vo, int number) struct vdpctx *vc = vo->priv; struct vdp_functions *vdp = vc->vdp; - if (number > MAX_VIDEO_SURFACES) + if (number >= MAX_VIDEO_SURFACES) return NULL; if (vc->surface_render[number].surface == VDP_INVALID_HANDLE && !vc->is_preempted) { |