[FFmpeg-devel] [PATCH] configure: Change _cflags_noopt for MSVC to -Od

Timo Rothenpieler timo at rothenpieler.org
Mon Dec 12 22:26:38 EET 2022


On 12.12.2022 19:30, lilotom at gmail.com wrote:
> Currently -O1 is set to _cflags_noopt, but -O1 is actually for size
> optimization instead of no-opt which causes size optimized binaries
> been built with --disable-optimizations.

It's like this very intentionally, since ffmpeg relies on 
dead-code-elimination in a lot of places, which MSVC does not perform 
when optimizations are turned off.
So optimizations cannot be fully turned off on MSVC.


More information about the ffmpeg-devel mailing list