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

marco subversion at mplayerhq.hu
Wed Aug 15 23:17:06 CEST 2007


Author: marco
Date: Wed Aug 15 23:17:06 2007
New Revision: 830

Log:
bugfix for the latest commit

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Wed Aug 15 23:17:06 2007
@@ -2165,8 +2165,11 @@ START_TIMER
             int i;
             int val = 0;
 
-            for (i = 0; i <= 4; i++)
-                val += t[i] * (li1[-i] + li2[-i]);
+            for (i = 0; i <= 4; i++) {
+                val += t[i] * (li1[-i] + li2[i]);
+                li1--;
+                li2++;
+            }
 
             val += 128;
             val >>= 8;



More information about the FFmpeg-soc mailing list