On 4/30/2020 7:19 PM, Dale Curtis wrote: > 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.
These look like 64 bit versions of av_sat_add32 and av_sat_sub32, from common.h, so you should probably add them there and rename them accordingly. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".