diff options
Diffstat (limited to 'apps/codecs/libwmapro/wmapro_math.h')
-rw-r--r-- | apps/codecs/libwmapro/wmapro_math.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/codecs/libwmapro/wmapro_math.h b/apps/codecs/libwmapro/wmapro_math.h index b339d8616d..4614bcbe56 100644 --- a/apps/codecs/libwmapro/wmapro_math.h +++ b/apps/codecs/libwmapro/wmapro_math.h | |||
@@ -48,4 +48,10 @@ static inline void vector_fixmul_scalar(FIXED *dst, const FIXED *src, FIXED mul, | |||
48 | dst[i] = fixmulshift(src[i],mul,shift); | 48 | dst[i] = fixmulshift(src[i],mul,shift); |
49 | } | 49 | } |
50 | 50 | ||
51 | static inline int av_clip(int a, int amin, int amax) | ||
52 | { | ||
53 | if (a < amin) return amin; | ||
54 | else if (a > amax) return amax; | ||
55 | else return a; | ||
56 | } | ||
51 | #endif /* _WMAPRO_MATH_H_ */ | 57 | #endif /* _WMAPRO_MATH_H_ */ |