Commit 904e5aeb authored by michaelni's avatar michaelni

simpler


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2039 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0387f3c1
......@@ -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