# HG changeset patch # User michaelni # Date 1058048111 0 # Node ID 047b1dff5976bf1a6f95285db5694459768687cb # Parent 4c2febfefd78ad4cd534c106a567419f091cb476 simpler diff -r 4c2febfefd78 -r 047b1dff5976 ffv1.c --- 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){