[FFmpeg-cvslog] lavu/mathematics: document so-called "cruft"

Clément Bœsch git at videolan.org
Sun Mar 19 00:52:46 EET 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Mar 18 23:48:22 2017 +0100| [1e1513d01aa8296d55efab95143e65ccbb152c5f] | committer: Clément Bœsch

lavu/mathematics: document so-called "cruft"

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e1513d01aa8296d55efab95143e65ccbb152c5f
---

 libavutil/mathematics.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c
index 20ff37f..f378bc7 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));



More information about the ffmpeg-cvslog mailing list