[FFmpeg-devel] [PATCH] lavfi/buffersink: cast to uint64_t before shifting.

Nicolas George george at nsup.org
Tue Sep 8 21:19:11 EEST 2020


Andreas Rheinhardt (12020-09-08):
> Using ULL would be shorter.

But it would be wrong, it could be more than 64 bits. For modern C,
using longs and shorts directly is a mistake (or the consequence of
dealing with an obsolescent library), these types are used internally to
implement the sane types from stdint.h. I know we use ULL like this all
over the place, but I will not use it in my code.

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/20200908/a628be56/attachment.sig>


More information about the ffmpeg-devel mailing list