Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Zhili <wantlamy@gmail.com>2016-07-18 19:03:19 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-18 23:52:36 +0300
commit450cf400fc4ec0ec24c96e6dfa95eb1b9d0f48a7 (patch)
tree789271b7ae94f3e1395e5a8ddcbad84f32d6395c /libavutil/mem.h
parentdaf421d2ab6f3e0031f46b194b5c42a09c14b15f (diff)
avutil/mem: fix wrong comment
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r--libavutil/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index d25b3229b7..2f53b474ff 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -339,8 +339,8 @@ void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,
static inline int av_size_mult(size_t a, size_t b, size_t *r)
{
size_t t = a * b;
- /* Hack inspired from glibc: only try the division if nelem and elsize
- * are both greater than sqrt(SIZE_MAX). */
+ /* Hack inspired from glibc: don't try the division if nelem and elsize
+ * are both less than sqrt(SIZE_MAX). */
if ((a | b) >= ((size_t)1 << (sizeof(size_t) * 4)) && a && t / a != b)
return AVERROR(EINVAL);
*r = t;