-
The previous implementation assumed that a 32-bit integer would fit in an `int`, something which is not guaranteed and might cause an integer overflow. These changes changes the declared type of the relevant variables, by also making a slight amount of clean-up on the affected paths, such as: - merging declaration and initialization - fixing redundant if-conditions fixes #17593 Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
f931a00f