[vlc-devel] [vlc-commits] contrib: lame: disable asserts

Thomas Guillem thomas at gllm.fr
Wed Dec 11 14:42:49 CET 2019


done

On Tue, Dec 10, 2019, at 23:15, David Fuhrmann wrote:
> Hi Thomas,
> 
> Looks good for me, can you also back port this for 3.0.9, please?
> 
> Thanks,
> David
> 
> > Am 10.12.2019 um 14:52 schrieb Thomas Guillem <git at videolan.org>:
> > 
> > vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Dec  9 16:54:17 2019 +0100| [c9e146e7872a6a16f9cf05e3f36aab14105cffa8] | committer: Thomas Guillem
> > 
> > contrib: lame: disable asserts
> > 
> > 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.
> > 
> >> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9e146e7872a6a16f9cf05e3f36aab14105cffa8
> > ---
> > 
> > contrib/src/lame/rules.mak | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> > 
> > diff --git a/contrib/src/lame/rules.mak b/contrib/src/lame/rules.mak
> > index 32827a8e69..ab08e93ba9 100644
> > --- a/contrib/src/lame/rules.mak
> > +++ b/contrib/src/lame/rules.mak
> > @@ -2,12 +2,17 @@
> > 
> > LAME_VERSION := 3.100
> > LAME_URL := $(SF)/lame/lame-$(LAME_VERSION).tar.gz
> > +LAME_CFLAGS := $(CFLAGS)
> > 
> > $(TARBALLS)/lame-$(LAME_VERSION).tar.gz:
> > 	$(call download_pkg,$(LAME_URL),lame)
> > 
> > .sum-lame: lame-$(LAME_VERSION).tar.gz
> > 
> > +ifdef WITH_OPTIMIZATION
> > +LAME_CFLAGS += -DNDEBUG
> > +endif
> > +
> > lame: lame-$(LAME_VERSION).tar.gz .sum-lame
> > 	$(UNPACK)
> > 	$(APPLY) $(SRC)/lame/lame-forceinline.patch
> > @@ -23,6 +28,6 @@ endif
> > 
> > .lame: lame
> > 	$(RECONF)
> > -	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-analyzer-hooks --disable-decoder --disable-gtktest --disable-frontend
> > +	cd $< && $(HOSTVARS) CFLAGS="$(LAME_CFLAGS)" ./configure $(HOSTCONF) --disable-analyzer-hooks --disable-decoder --disable-gtktest --disable-frontend
> > 	cd $< && $(MAKE) install
> > 	touch $@
> > 
> > _______________________________________________
> > vlc-commits mailing list
> > vlc-commits at videolan.org
> > https://mailman.videolan.org/listinfo/vlc-commits
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list