[MPlayer-cvslog] r27619 - trunk/libmpcodecs/ad_liba52.c

rathann subversion at mplayerhq.hu
Mon Sep 15 18:30:24 CEST 2008


Author: rathann
Date: Mon Sep 15 18:30:24 2008
New Revision: 27619

Log:
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.



Modified:
   trunk/libmpcodecs/ad_liba52.c

Modified: trunk/libmpcodecs/ad_liba52.c
==============================================================================
--- trunk/libmpcodecs/ad_liba52.c	(original)
+++ trunk/libmpcodecs/ad_liba52.c	Mon Sep 15 18:30:24 2008
@@ -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");



More information about the MPlayer-cvslog mailing list