[MPlayer-dev-eng] [PATCH] external liba52 support

Diego Biurrun diego at biurrun.de
Wed Sep 3 07:47:23 CEST 2008


On Mon, Sep 01, 2008 at 10:56:38PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> On Monday, 01 September 2008 at 20:03, Diego Biurrun wrote:
> > On Sat, Aug 30, 2008 at 01:00:01AM +0200, Dominik 'Rathann' Mierzejewski wrote:
> > > On Saturday, 30 August 2008 at 00:48, Diego Biurrun wrote:
> > > > On Fri, Aug 22, 2008 at 02:14:23AM +0200, Dominik 'Rathann' Mierzejewski wrote:
> > > > > Here are two patches which add external liba52-0.7.4 support.
> > > > 
> > > > This is very welcome, thanks.
> > > > 
> > > > > Patch1: conditionalizes enabling of some acceleration because
> > > > > liba52-0.7.4 doesn't support all that MPlayer's copy does.
> > > > > Patch2: the main patch, depends on Patch1
> > > > > 
> > > > > Tested with --disable-liba52-internal and without, seems to be working fine.
> > > > > 
> > > > > --- mplayer-export-2008-08-18/libmpcodecs/ad_liba52.c.accel	2008-08-22 01:26:25.000000000 +0200
> > > > > +++ mplayer-export-2008-08-18/libmpcodecs/ad_liba52.c	2008-08-22 01:25:33.000000000 +0200
> > > > > @@ -169,12 +169,18 @@ static int init(sh_audio_t *sh_audio)
> > > > > +#ifdef MM_ACCEL_X86_SSE
> > > > >    if(gCpuCaps.hasSSE) a52_accel|=MM_ACCEL_X86_SSE;
> > > > > +#endif
> > > > 
> > > >   if(gCpuCaps.hasSSE && MM_ACCEL_X86_SSE)
> > > >       a52_accel|=MM_ACCEL_X86_SSE;
> > > > 
> > > > or
> > > > 
> > > >   if(gCpuCaps.hasSSE && HAVE_SSE)
> > > >       a52_accel|=MM_ACCEL_X86_SSE;
> > > > 
> > > > ?
> > > 
> > > No. The last released a52dec doesn't have that define, hence the #ifdef.
> > > It won't simply compile otherwise.
> > > I could ask the package maintainer to switch to current SVN or poke
> > > upstream to make a release, though.
> > 
> > OK.  Is there a big difference between the last release and upstream
> > HEAD?
> 
> There is. Actually I'm surprised you don't know, because I thought you
> pushed all our asm optimizations upstream. I probably won't post an
> updated patch until next week.

No, I have not worked on getting liba52 changes merged upstream.  I did
work on libdvdcss, libmpeg2, tremor and libfaad2 though (the latter two
without success).

Diego



More information about the MPlayer-dev-eng mailing list