]> git.sesse.net Git - vlc/commitdiff
Fixed a Bug in UpdateEdgeWeighting used wrong const for number of columns (copy and...
authorAndré Weber <atmo@videolan.org>
Wed, 11 Mar 2009 18:13:27 +0000 (19:13 +0100)
committerAndré Weber <atmo@videolan.org>
Wed, 11 Mar 2009 18:13:27 +0000 (19:13 +0100)
modules/video_filter/atmo/AtmoZoneDefinition.cpp

index eb9bd57409b26fc6d6a11b75b31b3e92e40eff99..d2dc1625c3a46be41154bfb3fc0086d0231215db 100644 (file)
@@ -204,7 +204,7 @@ void CAtmoZoneDefinition::UpdateWeighting(int *destWeight,
 
   int index = 0;
   for(int row=0; row < CAP_HEIGHT; row++) {
-      for(int col=0; col < CAP_HEIGHT; col++) {
+      for(int col=0; col < CAP_WIDTH; col++) {
           if ((WidescreenMode == 1) && ((row <= CAP_HEIGHT/8) || (row >= (7*CAP_HEIGHT)/8)))
           {
              destWeight[index] = 0;