changeset 35193:e5f3eeacf75f

Fix off-by-one error in check.
author reimar
date Tue, 30 Oct 2012 16:42:25 +0000
parents 4001f0c1b625
children f54201cb82ae
files libvo/vo_vdpau.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Tue Oct 30 16:40:22 2012 +0000
+++ b/libvo/vo_vdpau.c	Tue Oct 30 16:42:25 2012 +0000
@@ -1004,7 +1004,7 @@
 
 static struct vdpau_render_state *get_surface(int number)
 {
-    if (number > MAX_VIDEO_SURFACES)
+    if (number >= MAX_VIDEO_SURFACES)
         return NULL;
     if (surface_render[number].surface == VDP_INVALID_HANDLE) {
         VdpStatus vdp_st;