[vlc-devel] [PATCH] contrib: lame: disable asserts
Remi Denis-Courmont
remi at remlab.net
Mon Dec 9 20:24:24 CET 2019
Le 2019-12-09 18:02, Thomas Guillem a écrit :
> As the lame INSTALL says:
>
> "For production use, be sure to compile a "Release" target, with the
> "maximum
> speed" compile option, and #define NDEBUG."
>
> It will fix an assert on psymodel.c:576 that could happen when feeding
> data
> after a flush. There is no possible memory corruption but maybe a read
> of
> invalid data that could trigger an audio glitch. Due to the rarity of
> this bug
> (happening only via chromecast, with some input files and with a lot of
> seek
> requests), I think that such fix is enough.
>
> PS: the contrib WITH_OPTIMIZATION option should be split into OPTIMS
> and DEBUG.
I rather think that debugging should replace optimisations. If debugging
is enabled, use -Og instead of -O2/-O3/whatever. Nowadays -O0 is so far
off from normal optimised builds that it's effectively useless.
(On VLC i386, -O0 does not even build...)
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list