diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-16 19:23:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-16 19:23:39 +0000 |
commit | bf63eb4bbaf18f13a29ad399a7d70ae10bb71e41 (patch) | |
tree | 35a8854c0075d25ba4772e3cbf1bd72e04a2c46d | |
parent | 11498da3349242747ab2b7680972a51e275cd06e (diff) | |
download | ffmpeg-bf63eb4bbaf18f13a29ad399a7d70ae10bb71e41.tar.gz |
av_d2q() documentation
Originally committed as revision 2522 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/rational.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/rational.c b/libavcodec/rational.c index 92db8bbe3e..ad085653a5 100644 --- a/libavcodec/rational.c +++ b/libavcodec/rational.c @@ -51,6 +51,10 @@ AVRational av_sub_q(AVRational b, AVRational c){ return b; } +/** + * Converts a double precission floating point number to a AVRational. + * @param max the maximum allowed numerator and denominator + */ AVRational av_d2q(double d, int max){ AVRational a; int exponent= FFMAX( (int)(log(ABS(d) + 1e-20)/log(2)), 0); |