From 6544f48f038552973a552401cea5d4e8f1fc9c0a Mon Sep 17 00:00:00 2001 From: Zuxy Meng Date: Tue, 18 Mar 2008 15:27:15 +0000 Subject: Pure, const and malloc attributes to libavutil. Patch by Zuxy Meng: zuxy meng gmail com Original thread: [FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil Date: 03/18/2008 6:09 AM Originally committed as revision 12489 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/rational.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavutil/rational.h') diff --git a/libavutil/rational.h b/libavutil/rational.h index f53f278619..474eaf7445 100644 --- a/libavutil/rational.h +++ b/libavutil/rational.h @@ -78,7 +78,7 @@ int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max) * @param c second rational. * @return b*c. */ -AVRational av_mul_q(AVRational b, AVRational c); +AVRational av_mul_q(AVRational b, AVRational c) av_const; /** * Divides one rational by another. @@ -86,7 +86,7 @@ AVRational av_mul_q(AVRational b, AVRational c); * @param c second rational. * @return b/c. */ -AVRational av_div_q(AVRational b, AVRational c); +AVRational av_div_q(AVRational b, AVRational c) av_const; /** * Adds two rationals. @@ -94,7 +94,7 @@ AVRational av_div_q(AVRational b, AVRational c); * @param c second rational. * @return b+c. */ -AVRational av_add_q(AVRational b, AVRational c); +AVRational av_add_q(AVRational b, AVRational c) av_const; /** * Subtracts one rational from another. @@ -102,7 +102,7 @@ AVRational av_add_q(AVRational b, AVRational c); * @param c second rational. * @return b-c. */ -AVRational av_sub_q(AVRational b, AVRational c); +AVRational av_sub_q(AVRational b, AVRational c) av_const; /** * Converts a double precision floating point number to a rational. @@ -110,6 +110,6 @@ AVRational av_sub_q(AVRational b, AVRational c); * @param max the maximum allowed numerator and denominator * @return (AVRational) d. */ -AVRational av_d2q(double d, int max); +AVRational av_d2q(double d, int max) av_const; #endif /* FFMPEG_RATIONAL_H */ -- cgit v1.2.3