lavu/mathematics: document so-called "cruft"

This commit is contained in:
Clément Bœsch 2017-03-18 23:48:22 +01:00
parent 2c400ba7d1
commit 1e1513d01a
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
return t1; return t1;
} }
#else #else
/* reference code doing (a*b + r) / c, requires libavutil/integer.h */
AVInteger ai; AVInteger ai;
ai = av_mul_i(av_int2i(a), av_int2i(b)); ai = av_mul_i(av_int2i(a), av_int2i(b));
ai = av_add_i(ai, av_int2i(r)); ai = av_add_i(ai, av_int2i(r));