aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/rational.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-04 13:41:01 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-04 13:41:01 +0000
commit6b4ed22f7512056f47bc7f39cd16bbbb83b2781d (patch)
treea035682ce9a76f2cba4194018c96717cd7965ad3 /libavutil/rational.h
parent9276bdddca3dba697ffead22ce591657b7b33e24 (diff)
downloadffmpeg-6b4ed22f7512056f47bc7f39cd16bbbb83b2781d.tar.gz
Make av_d2q() manage the case in which the value to convert is inf.
Originally committed as revision 25332 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/rational.h')
-rw-r--r--libavutil/rational.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/rational.h b/libavutil/rational.h
index 7c6605cce7..21542a8abe 100644
--- a/libavutil/rational.h
+++ b/libavutil/rational.h
@@ -107,6 +107,8 @@ AVRational av_sub_q(AVRational b, AVRational c) av_const;
/**
* Convert a double precision floating point number to a rational.
+ * inf is expressed as {1,0} or {-1,0} depending on the sign.
+ *
* @param d double to convert
* @param max the maximum allowed numerator and denominator
* @return (AVRational) d