[MPlayer-cvslog] r35287 - trunk/libvo/vo_vdpau.c
reimar
subversion at mplayerhq.hu
Tue Oct 30 17:42:25 CET 2012
Author: reimar
Date: Tue Oct 30 17:42:25 2012
New Revision: 35287
Log:
Fix off-by-one error in check.
Modified:
trunk/libvo/vo_vdpau.c
Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c Tue Oct 30 17:40:22 2012 (r35286)
+++ trunk/libvo/vo_vdpau.c Tue Oct 30 17:42:25 2012 (r35287)
@@ -1004,7 +1004,7 @@ static int draw_frame(uint8_t *src[])
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;
More information about the MPlayer-cvslog
mailing list