mirror of https://git.ffmpeg.org/ffmpeg.git
simpler
Originally committed as revision 2039 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7e9e2b55c5
commit
25bd2349ed
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue