[FFmpeg-devel] [PATCH] Make implicit void pointer cast explicit

Nicolas George george at nsup.org
Wed Jul 20 00:23:56 EEST 2022


Amir Mazzarella (12022-07-19):
> Thank you for your response! A C++ compiler can't do implicit casts like a
> C compiler can, in this instance. This is fine for most of FFmpeg's
> codebase, since these tricks are in C source files, but in this instance it
> is in a header file. If any C++ code includes this header file, even with
> extern "C", it won't be able to be compiled.

Thanks for clarifying. I confess I had more or less guessed. FFmpeg is
C, and its headers, public or not, as a rule do not contain
accommodations to be included as is in other languages.

> On Tue, Jul 19, 2022 at 12:08 PM Nicolas George <george at nsup.org> wrote:

Please remember that top-posting is forbidden on this mailing-list. If
you do not know what it means, look it up.

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/20220719/26f6c8a0/attachment.sig>


More information about the ffmpeg-devel mailing list