From: André Weber Date: Wed, 11 Mar 2009 18:13:27 +0000 (+0100) Subject: Fixed a Bug in UpdateEdgeWeighting used wrong const for number of columns (copy and... X-Git-Tag: 1.0.0-pre1~143 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3d230637469d2ec1dcdb41957614eb3ad22b7615;p=vlc Fixed a Bug in UpdateEdgeWeighting used wrong const for number of columns (copy and paste error) --- diff --git a/modules/video_filter/atmo/AtmoZoneDefinition.cpp b/modules/video_filter/atmo/AtmoZoneDefinition.cpp index eb9bd57409..d2dc1625c3 100644 --- a/modules/video_filter/atmo/AtmoZoneDefinition.cpp +++ b/modules/video_filter/atmo/AtmoZoneDefinition.cpp @@ -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;