]> git.sesse.net Git - ffmpeg/commit
avformat/concat: Remove unnecessary check
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Feb 2021 08:54:23 +0000 (09:54 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 27 Feb 2021 03:27:09 +0000 (04:27 +0100)
commit963d4b76debd3b7577a8e35fb40662974d52fe28
tree02ed2b6e0233ed9caa1248053b0a45e33527042a
parente38cbb8d19e21af9ea3f947e64bee1d4d362e492
avformat/concat: Remove unnecessary check

This code was written when the allocation functions used parameters of
type unsigned. This is no longer true today and therefore we only need
to check whether the multiplication of the array's size stays within
a size_t -- and this can be offloaded to av_realloc_array.

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