diff bfin/vp3_bfin.c @ 11926:43e39953f4f9 libavcodec

Improve some uses of ff_cropTbl with constant offset
author mru
date Tue, 22 Jun 2010 23:12:48 +0000
parents 00b80bf84ad9
children
line wrap: on
line diff
--- a/bfin/vp3_bfin.c	Tue Jun 22 21:12:42 2010 +0000
+++ b/bfin/vp3_bfin.c	Tue Jun 22 23:12:48 2010 +0000
@@ -25,14 +25,14 @@
 /* Intra iDCT offset 128 */
 void ff_bfin_vp3_idct_put (uint8_t *dest, int line_size, DCTELEM *block)
 {
-    uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
+    uint8_t *cm = ff_cropTbl + MAX_NEG_CROP + 128;
     int i,j;
 
     ff_bfin_vp3_idct (block);
 
     for (i=0;i<8;i++)
         for (j=0;j<8;j++)
-            dest[line_size*i+j]=cm[128+block[i*8+j]];
+            dest[line_size*i+j]=cm[block[i*8+j]];
 }
 
 /* Inter iDCT */