Mercurial > libavutil.hg
diff rational.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 | bd4052d9050c |
line wrap: on
line diff
--- a/rational.h Tue Mar 18 22:28:33 2008 +0000 +++ b/rational.h Wed Mar 19 06:17:43 2008 +0000 @@ -29,6 +29,7 @@ #define FFMPEG_RATIONAL_H #include <stdint.h> +#include "common.h" /** * Rational number num/den. @@ -78,7 +79,7 @@ * @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 +87,7 @@ * @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 +95,7 @@ * @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 +103,7 @@ * @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 +111,6 @@ * @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 */