Originally committed as revision 5690 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-07-09 10:56:39 +00:00
parent a7702890bd
commit 18769c0a79
1 changed files with 3 additions and 6 deletions

View File

@ -410,12 +410,9 @@ static inline int mid_pred(int a, int b, int c)
*/ */
static inline int clip(int a, int amin, int amax) static inline int clip(int a, int amin, int amax)
{ {
if (a < amin) if (a < amin) return amin;
return amin; else if (a > amax) return amax;
else if (a > amax) else return a;
return amax;
else
return a;
} }
/** /**