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

Hendrik Leppkes h.leppkes at gmail.com
Wed Jul 20 00:23:40 EEST 2022


On Tue, Jul 19, 2022 at 11:21 PM Amir Mazzarella
<amirmazz-at-google.com at ffmpeg.org> wrote:
>
> 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.
>

While this is true, extremely little code in FFmpeg is C++, as it is
avoided unless absolutely necessary.
We're more likely to fix such cases when needed, rather than blanket
them "just in case".

- Hendrik


More information about the ffmpeg-devel mailing list