diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-12 22:15:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-12 22:15:11 +0000 |
commit | 25bd2349ed9f0ac8fce4d8233acb27c52f520d45 (patch) | |
tree | 68f8d121d2f1f790a461a00850e050b2ae73cf7c | |
parent | 7e9e2b55c5bf4f605c729185c49d7312cad2e0c5 (diff) | |
download | ffmpeg-25bd2349ed9f0ac8fce4d8233acb27c52f520d45.tar.gz |
simpler
Originally committed as revision 2039 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ffv1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 7e6f18e7a3..a2c4dffaa1 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -185,10 +185,8 @@ static inline int predict(uint8_t *src, uint8_t *last){ 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){ |