summaryrefslogtreecommitdiff
path: root/libavutil/mathematics.h
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2008-03-19 06:17:43 +0000
committerZuxy Meng <zuxy.meng@gmail.com>2008-03-19 06:17:43 +0000
commit85074d3c9388123d792995c8f98c9b5d807566b4 (patch)
tree54440eea962c4864599dd5403fc0244becb24875 /libavutil/mathematics.h
parentd1928ac1296a09c658ba64fe5c503979e280a2e0 (diff)
downloadffmpeg-85074d3c9388123d792995c8f98c9b5d807566b4.tar.gz
Reapply r12489: Add pure, const and malloc attributes to proper functions
in libavutil. Fix a compilation failure in r12489. Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r--libavutil/mathematics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index fa407b6111..a9dfe7eccf 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -36,17 +36,17 @@ enum AVRounding {
* 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 */