[FFmpeg-devel] Weird cross platform support in ffmpeg

Wang Bin wbsecg1 at gmail.com
Tue May 31 19:38:35 EEST 2022


Nicolas George <george at nsup.org> 于2022年5月31日周二 22:40写道:

> Александр (12022-05-31):
> > I analyzed problem a little bit. Only gcc/clang allows to use this trick.
> > Msvc compiler forbidens such code (even with different enabled
> > optimizations like remove unused references, whole program optimization
> > etc) I have made patch, which uses preprocessor #if directive instead. If
> > it will be helpful, I can share the patch.
>
> FATE shows FFmpeg builds fine on several MSVC instances, so no, we do
> not need such a patch at this time.
>
> I have asked you to show on ffmpeg-users the exact thing you are
> attempting to do, you have neglected to do that. It is obvious to me
> that you are trying to tweak the build process in a way that is not
> supported: stop.
>
>
If MSVC whole program optimization is enabled (compiler flag /GL), DCE will
not work.


More information about the ffmpeg-devel mailing list