diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-10-20 19:51:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-04-13 23:39:49 +0200 |
commit | ef075e363d1a5040d35e8e65dcc5bb0a257c4681 (patch) | |
tree | 5ea01d959ff07964d7a39642fc12878dd9da3e48 | |
parent | 9e213f508692f5e61ca02efd713f397d1763db7b (diff) | |
download | ffmpeg-ef075e363d1a5040d35e8e65dcc5bb0a257c4681.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>
-rw-r--r-- | libavutil/mathematics.h | 1 |
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() */ |