diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2012-10-30 16:42:25 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-31 22:33:51 +0100 |
commit | d02b8191bfd7c827462eea644f7c981ee9febc7f (patch) | |
tree | e46bd5c1ed9a1509d49848d28d53795cc4e6082f /libvo | |
parent | 5c72ff6a251de7df37456cf113f7dd718d7784de (diff) | |
download | mpv-d02b8191bfd7c827462eea644f7c981ee9febc7f.tar.bz2 mpv-d02b8191bfd7c827462eea644f7c981ee9febc7f.tar.xz |
vo_vdpau: fix off-by-one error
Fix off-by-one error in check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35287 b3059339-0415-0410-9bf9-f77b7e298cf2
Conflicts:
libvo/vo_vdpau.c
Diffstat (limited to 'libvo')
-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) { |