Mercurial > libavcodec.hg
comparison wmv2.c @ 4001:34fdffe98bd0 libavcodec
Rename ABS macro to FFABS.
author | diego |
---|---|
date | Wed, 11 Oct 2006 23:17:58 +0000 |
parents | c8c591fe26f8 |
children | 018b316baca7 |
comparison
equal
deleted
inserted
replaced
4000:eeab02251056 | 4001:34fdffe98bd0 |
---|---|
511 A = s->current_picture.motion_val[0][xy - 1]; | 511 A = s->current_picture.motion_val[0][xy - 1]; |
512 B = s->current_picture.motion_val[0][xy - wrap]; | 512 B = s->current_picture.motion_val[0][xy - wrap]; |
513 C = s->current_picture.motion_val[0][xy + 2 - wrap]; | 513 C = s->current_picture.motion_val[0][xy + 2 - wrap]; |
514 | 514 |
515 if(s->mb_x && !s->first_slice_line && !s->mspel && w->top_left_mv_flag) | 515 if(s->mb_x && !s->first_slice_line && !s->mspel && w->top_left_mv_flag) |
516 diff= FFMAX(ABS(A[0] - B[0]), ABS(A[1] - B[1])); | 516 diff= FFMAX(FFABS(A[0] - B[0]), FFABS(A[1] - B[1])); |
517 else | 517 else |
518 diff=0; | 518 diff=0; |
519 | 519 |
520 if(diff >= 8) | 520 if(diff >= 8) |
521 type= get_bits1(&s->gb); | 521 type= get_bits1(&s->gb); |