Mesa (pipe-video): g3dvl/xvmc: fix a stupid of by one bug

Christian König deathsimple at kemper.freedesktop.org
Sat Apr 2 11:53:19 PDT 2011


Module: Mesa
Branch: pipe-video
Commit: 3e92b4fd14b731bd6984aafd220059e27948aea8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e92b4fd14b731bd6984aafd220059e27948aea8

Author: Christian König <deathsimple at vodafone.de>
Date:   Sat Apr  2 20:29:27 2011 +0200

g3dvl/xvmc: fix a stupid of by one bug

---

 src/gallium/state_trackers/xorg/xvmc/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c
index 67dc57d..23f97b3 100644
--- a/src/gallium/state_trackers/xorg/xvmc/surface.c
+++ b/src/gallium/state_trackers/xorg/xvmc/surface.c
@@ -155,7 +155,7 @@ unmap_and_flush_surface(XvMCSurfacePrivate *surface)
 
    assert(surface);
 
-   for ( i = 0; i < 3; ++i ) {
+   for ( i = 0; i < 2; ++i ) {
       if (surface->ref_surfaces[i]) {
          XvMCSurfacePrivate *ref = surface->ref_surfaces[i]->privData;
 



More information about the mesa-commit mailing list