Mercurial > libavutil.hg
diff mathematics.h @ 481:f4187c1c15a6 libavutil
Reapply r12489: Add pure, const and malloc attributes to proper functions
in libavutil.
Fix a compilation failure in r12489.
author | zuxy |
---|---|
date | Wed, 19 Mar 2008 06:17:43 +0000 |
parents | 8d2c05ebf5f1 |
children | 3f9f807b86a4 |
line wrap: on
line diff
--- a/mathematics.h Tue Mar 18 22:28:33 2008 +0000 +++ b/mathematics.h Wed Mar 19 06:17:43 2008 +0000 @@ -36,17 +36,17 @@ * rescale a 64bit integer with rounding to nearest. * a simple a*b/c isn't possible as it can overflow */ -int64_t av_rescale(int64_t a, int64_t b, int64_t c); +int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const; /** * rescale a 64bit integer with specified rounding. * a simple a*b/c isn't possible as it can overflow */ -int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding); +int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) av_const; /** * rescale a 64bit integer by 2 rational numbers. */ -int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq); +int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; #endif /* FFMPEG_MATHEMATICS_H */