]> git.sesse.net Git - ffmpeg/commitdiff
av_d2q() documentation
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Nov 2003 19:23:39 +0000 (19:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Nov 2003 19:23:39 +0000 (19:23 +0000)
Originally committed as revision 2522 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/rational.c

index 92db8bbe3eccb8e99e531a7894b6bcbd6bf6ff0c..ad085653a520cefddf624051066e28dcfe0c3598 100644 (file)
@@ -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);