summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-10-20 19:51:08 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-21 19:21:14 +0200
commit875fbddd7d7b342f98ded3dfddf2ad7b30569b50 (patch)
treec3e118792b01fa5ba7d441abff0747be523d127a /libavutil
parent32b68a62328a98e8ea5fb8b8a4c09704ff565334 (diff)
downloadffmpeg-875fbddd7d7b342f98ded3dfddf2ad7b30569b50.tar.gz
avutil/mathematics: Document av_rescale_rnd() behavior on non int64 results
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e154353fdb73dc1b3c1519350244d5346f761850) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/mathematics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index 54901800ba..64d4137a60 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -134,6 +134,7 @@ int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const;
*
* The operation is mathematically equivalent to `a * b / c`, but writing that
* directly can overflow, and does not support different rounding methods.
+ * If the result is not representable then INT64_MIN is returned.
*
* @see av_rescale(), av_rescale_q(), av_rescale_q_rnd()
*/