]> git.sesse.net Git - ffmpeg/commit
avformat/utils: Remove redundant check
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 24 Mar 2021 00:14:24 +0000 (01:14 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 28 Mar 2021 17:09:29 +0000 (19:09 +0200)
commit63fcf3da018fd4c884d0780b90141ed22ed86016
tree8e9d8cd72133f7f23e40bb74fe01493701bf906b
parent797c2ecc8fca65721b79637073df0a31fe31c463
avformat/utils: Remove redundant check

This check is outdated because the caller doesn't need to check that
the multiplication overflows when using av_realloc_array() (the code
in question used av_realloc() before that); furthermore, the check
is also a remnant of the time in which our allocation functions
didn't use size_t parameters.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/utils.c