aboutsummaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini2010-10-05 08:44:18 +0000
committerStefano Sabatini2010-10-05 08:44:18 +0000
commit3a1429ec3cea15cfc82ab1b9edab95c8016c06ba (patch)
tree2b2832aebcbff022f00b5ea3a82ff1a9e4d9e33b /libavutil
parent59a3bf0e51c5bbb38adbc883c25daff11bb1b4a8 (diff)
Update av_cmp_q() documentation after r25338.
Originally committed as revision 25340 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/rational.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/rational.h b/libavutil/rational.h
index 15df06f4af..789e4aca2c 100644
--- a/libavutil/rational.h
+++ b/libavutil/rational.h
@@ -44,7 +44,8 @@ typedef struct AVRational{
* Compare two rationals.
* @param a first rational
* @param b second rational
- * @return 0 if a==b, 1 if a>b and -1 if a<b
+ * @return 0 if a==b, 1 if a>b, -1 if a<b, and INT_MIN if one of the
+ * values is of the form 0/0
*/
static inline int av_cmp_q(AVRational a, AVRational b){
const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;