]> git.sesse.net Git - ffmpeg/commit
avformat/aviobuf: Don't check for overflow after it happened
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 24 May 2020 01:14:00 +0000 (03:14 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 10 Jun 2020 23:18:54 +0000 (01:18 +0200)
commit28a078eded1c29985ed078b59d48ff59cf00394b
tree7a0a7438645a67ae20e250f63c220f60d6c8787c
parent7aa7d68971e48f6bbf729a6feb318a17010d410f
avformat/aviobuf: Don't check for overflow after it happened

If adding two ints overflows, it doesn't matter whether the result will
be stored in an unsigned or not; and checking afterwards does not make it
retroactively defined.

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