[MPlayer-dev-eng] [PATCH] makes --enable-*-faad behave correctly

Aurelien Jacobs aurel at gnuage.org
Thu Feb 3 00:29:47 CET 2005


On Wed, 02 Feb 2005 18:52:01 +0100
Nico Sabbi <nsabbi at tiscali.it> wrote:

> Aurelien Jacobs wrote:
> 
> >On Wed, 02 Feb 2005 08:43:50 +0100
> >Nico Sabbi <nsabbi at tiscali.it> wrote:
> >
> >  
> >
> >>I'm against it: faad is very prone to break. If the external library
> >>doesn't compile (now or in the future) mplayer won't compile either
> >>because of the removal of this check.
> >>    
> >>
> >
> >What ? I don't understand what you mean exactly.
> >
> >If external library doesn't compile, it's not related to MPlayer...
> >And mplayer won't detect any external faad so won't use it.
> >
> >Or you mean if external faad API changes and that ad_faad don't
> >compile anymore ?
> >My patch modify the test code used when _faad_external=auto, so that
> >it try to compile faacDecInit() (which argument number changed during
> >the API change) so that it will fail on older versions of faad2 and
> >thus disable faad on those broken versions.
> >If a new API change is introduced, we will anyway have to modify the
> >configure to take care of the new version.
> >
> >So the removal of the version check only disable support of very old
> >faad2 versions but when _faad_external=auto we still verify the the
> >version found follow the new API.
> >
> >So what's exactly the problem with that ?
> >
> >Aurel
> >
> >  
> >
> 
> sorry, I misread your patch (I missed the line that changed the main() 
> body).
> Now I see that configure will still try to cc_check for external_faad.

Ok :-)

Anyway, there was a small mistake in my first patch and I must admit that
I only tested it very quickly. Here is an updated version. I tested this
one carefully with internal or external faad, and with different versions
of external faad to be sure that the old 1.1 version is well detected
and that external faad is disabled when this version is found.

If no one is against it, I will commit this one.

Aurel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: faad_enable2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050203/e2babae8/attachment.asc>


More information about the MPlayer-dev-eng mailing list