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

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Mon Sep 1 22:56:38 CEST 2008


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.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-dev-eng mailing list