aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mathematics.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-18 23:48:22 +0100
committerClément Bœsch <u@pkh.me>2017-03-18 23:50:03 +0100
commit1e1513d01aa8296d55efab95143e65ccbb152c5f (patch)
treeef53302681cc30f3cb124f1536877301e3d64e9f /libavutil/mathematics.c
parent2c400ba7d1abfc601b631f2b3b40a23b6385af79 (diff)
downloadffmpeg-1e1513d01aa8296d55efab95143e65ccbb152c5f.tar.gz
lavu/mathematics: document so-called "cruft"
Diffstat (limited to 'libavutil/mathematics.c')
-rw-r--r--libavutil/mathematics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c
index 20ff37f5e9..f378bc73b3 100644
--- a/libavutil/mathematics.c
+++ b/libavutil/mathematics.c
@@ -117,6 +117,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
return t1;
}
#else
+ /* reference code doing (a*b + r) / c, requires libavutil/integer.h */
AVInteger ai;
ai = av_mul_i(av_int2i(a), av_int2i(b));
ai = av_add_i(ai, av_int2i(r));