[FFmpeg-soc] [soc]: r654 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Thu Aug 9 20:08:11 CEST 2007


Author: marco
Date: Thu Aug  9 20:08:11 2007
New Revision: 654

Log:
Fix the spatial weighting matrix

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Thu Aug  9 20:08:11 2007
@@ -2032,9 +2032,9 @@ static inline int spatial_wt(int i, int 
     int max;
 
     max = 2 * (blen - bsep);
-    if (i == 0 && x < (blen >> 1))
+    if (i == 0 && pos < (blen >> 1))
         return max;
-    else if (i == blocks && x >= (blen >> 1))
+    else if (i == blocks - 1 && pos >= (blen >> 1))
         return max;
     else
         return av_clip(blen - 2*FFABS(pos - (blen - 1) / 2), 0, max);



More information about the FFmpeg-soc mailing list