Skip to content
Snippets Groups Projects
Commit bf63eb4b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

av_d2q() documentation

Originally committed as revision 2522 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 11498da3
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment