changeset 1360:047b1dff5976 libavcodec

simpler
author michaelni
date Sat, 12 Jul 2003 22:15:11 +0000
parents 4c2febfefd78
children 8479b875a989
files ffv1.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ffv1.c	Sat Jul 12 20:21:34 2003 +0000
+++ b/ffv1.c	Sat Jul 12 22:15:11 2003 +0000
@@ -185,10 +185,8 @@
     const int LT= last[-1];
     const int  T= last[ 0];
     const int L =  src[-1];
-    uint8_t *cm = cropTbl + MAX_NEG_CROP;    
-    const int gradient= cm[L + T - LT];
 
-    return mid_pred(L, gradient, T);
+    return mid_pred(L, L + T - LT, T);
 }
 
 static inline int get_context(FFV1Context *f, uint8_t *src, uint8_t *last, uint8_t *last2){