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 90c438e76f..a523ea5815 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -1284,7 +1284,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) { |