[FFmpeg-devel] [PATCH] [libavutil] Add saturated add/sub operations for int64_t.

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri May 1 02:20:53 EEST 2020


Am Fr., 1. Mai 2020 um 00:20 Uhr schrieb Dale Curtis <dalecurtis at chromium.org>:
>
> Many places are using their own custom code for handling overflow
> around timestamps or other int64_t values. There are enough of these
> now that having some common saturated math functions seems sound.

> This adds implementations that just use the builtin functions for
> recent gcc, clang when available or implements its own version for
> older compilers.

Should be tested in configure and I believe this should be a separate patch.

Carl Eugen


More information about the ffmpeg-devel mailing list