diff options
author | Zuxy Meng <zuxy.meng@gmail.com> | 2008-03-18 15:27:15 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-03-18 15:27:15 +0000 |
commit | 6544f48f038552973a552401cea5d4e8f1fc9c0a (patch) | |
tree | df001b9633d7c0cd7407cc0566e21917edf73d7b /libavutil/rational.h | |
parent | 38c669d853dfa60a73bf59695ff03e7104650623 (diff) | |
download | ffmpeg-6544f48f038552973a552401cea5d4e8f1fc9c0a.tar.gz |
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
Diffstat (limited to 'libavutil/rational.h')
-rw-r--r-- | libavutil/rational.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 */ |