Commit 25bd2349 authored by Michael Niedermayer's avatar Michael Niedermayer

simpler

Originally committed as revision 2039 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7e9e2b55
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment