[FFmpeg-devel] [PATCH] avutil/mathematics: Document av_rescale_rnd() behavior on non int64 results

Derek Buitenhuis derek.buitenhuis at gmail.com
Wed Oct 20 21:44:52 EEST 2021


On 10/20/2021 7:24 PM, Michael Niedermayer wrote:
>   * The operation is mathematically equivalent to `a * b / c`, but writing that
>   * directly can overflow, and does not support different rounding methods.
> + * If the result is not representable then INT64_MIN is returned.

Seems reasonable to me.

- Derek


More information about the ffmpeg-devel mailing list