From 85074d3c9388123d792995c8f98c9b5d807566b4 Mon Sep 17 00:00:00 2001 From: Zuxy Meng Date: Wed, 19 Mar 2008 06:17:43 +0000 Subject: 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 --- libavutil/mathematics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavutil/mathematics.h') 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 */ -- cgit v1.2.1