diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-24 03:14:00 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-02 10:15:07 +0200 |
commit | f7a7476e06d8bea5dcb01b72b74e67dd6a3ae10d (patch) | |
tree | 46a021ec504b59b430e23803cc1dc445a8c75467 /doc/examples/vaapi_encode.c | |
parent | e139aaa32f2ff2682a0661bf8ff188cb3fafbec2 (diff) | |
download | ffmpeg-f7a7476e06d8bea5dcb01b72b74e67dd6a3ae10d.tar.gz |
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>
(cherry picked from commit 28a078eded1c29985ed078b59d48ff59cf00394b)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/examples/vaapi_encode.c')
0 files changed, 0 insertions, 0 deletions