mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
External liba52 support part 1 of 2.
Conditionalize enabling of some the acceleration because liba52-0.7.4 doesn't support all that MPlayer's included copy does. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27619 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
853d571d48
commit
d977c6e812
@ -158,12 +158,18 @@ static int init(sh_audio_t *sh_audio)
|
||||
sample_t level=a52_level, bias=384;
|
||||
int flags=0;
|
||||
/* Dolby AC3 audio:*/
|
||||
#ifdef MM_ACCEL_X86_SSE
|
||||
if(gCpuCaps.hasSSE) a52_accel|=MM_ACCEL_X86_SSE;
|
||||
#endif
|
||||
if(gCpuCaps.hasMMX) a52_accel|=MM_ACCEL_X86_MMX;
|
||||
if(gCpuCaps.hasMMX2) a52_accel|=MM_ACCEL_X86_MMXEXT;
|
||||
if(gCpuCaps.has3DNow) a52_accel|=MM_ACCEL_X86_3DNOW;
|
||||
#ifdef MM_ACCEL_X86_3DNOWEXT
|
||||
if(gCpuCaps.has3DNowExt) a52_accel|=MM_ACCEL_X86_3DNOWEXT;
|
||||
#endif
|
||||
#ifdef MM_ACCEL_PPC_ALTIVEC
|
||||
if(gCpuCaps.hasAltiVec) a52_accel|=MM_ACCEL_PPC_ALTIVEC;
|
||||
#endif
|
||||
a52_state=a52_init (a52_accel);
|
||||
if (a52_state == NULL) {
|
||||
mp_msg(MSGT_DECAUDIO,MSGL_ERR,"A52 init failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user