[FFmpeg-devel] [PATCH 001/244] Add a new channel layout API

Nicolas George george at nsup.org
Sun Jan 12 15:28:06 EET 2020


Anton Khirnov (12020-01-07):
> How is it any better in the unsigned case? You do a well-defined
> unsigned overflow and end up with an invalid channel count (which might
> even look sane).

I explained this: you can guard against defined behaviors, not against
undefined behaviors, because the compilers are allowed to shunt the
checks, and they do.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200112/897dd5ec/attachment.sig>


More information about the ffmpeg-devel mailing list