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

Michael Niedermayer michael at niedermayer.cc
Thu Oct 21 15:18:56 EEST 2021


On Wed, Oct 20, 2021 at 07:44:52PM +0100, Derek Buitenhuis wrote:
> 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.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211021/ae8ca197/attachment.sig>


More information about the ffmpeg-devel mailing list