[-]
[+]
|
Changed |
a52dec.spec
|
|
[-]
[+]
|
Added |
a52dec-compat.diff
^
|
@@ -0,0 +1,43 @@
+diff -ur a52dec-0.7.5svn.orig/include/a52.h a52dec-0.7.5svn/include/a52.h
+--- a52dec-0.7.5svn.orig/include/a52.h 2009-11-21 12:16:55.000000000 +0100
++++ a52dec-0.7.5svn/include/a52.h 2009-11-21 23:38:01.737496206 +0100
+@@ -68,7 +68,7 @@
+ #define A52_ACCEL_DETECT 0x80000000
+
+ uint32_t a52_accel (uint32_t accel);
+-a52_state_t * a52_init (void);
++a52_state_t * a52_init (uint32_t mm_accel);
+ sample_t * a52_samples (a52_state_t * state);
+ int a52_syncinfo (uint8_t * buf, int * flags,
+ int * sample_rate, int * bit_rate);
+diff -ur a52dec-0.7.5svn.orig/liba52/parse.c a52dec-0.7.5svn/liba52/parse.c
+--- a52dec-0.7.5svn.orig/liba52/parse.c 2009-11-21 12:16:55.000000000 +0100
++++ a52dec-0.7.5svn/liba52/parse.c 2009-11-21 23:41:41.876496697 +0100
+@@ -63,12 +63,12 @@
+ return a52_accels & ~A52_ACCEL_DETECT;
+ }
+
+-a52_state_t * a52_init (void)
++a52_state_t * a52_init (uint32_t mm_accel)
+ {
+ a52_state_t * state;
+ int i;
+
+- a52_accel (A52_ACCEL_DETECT);
++ a52_accel (mm_accel);
+
+ state = (a52_state_t *) malloc (sizeof (a52_state_t));
+ if (state == NULL)
+diff -ur a52dec-0.7.5svn.orig/src/a52dec.c a52dec-0.7.5svn/src/a52dec.c
+--- a52dec-0.7.5svn.orig/src/a52dec.c 2009-11-21 12:16:55.000000000 +0100
++++ a52dec-0.7.5svn/src/a52dec.c 2009-11-21 23:39:45.882501382 +0100
+@@ -631,8 +631,7 @@
+ return 1;
+ }
+
+- a52_accel (accel);
+- state = a52_init ();
++ state = a52_init (accel);
+ if (state == NULL) {
+ fprintf (stderr, "A52 init failed\n");
+ return 1;
|
|
Deleted |
a52dec-0.7.4.tar.bz2
^
|
|
Added |
a52dec-0.7.5svn.tar.bz2
^
|
[-]
[+]
|
Added |
mm_accel.h
^
|
@@ -0,0 +1,35 @@
+/*
+ * mm_accel.h
+ * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org>
+ * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
+ *
+ * This file is part of a52dec, a free ATSC A-52 stream decoder.
+ * See http://liba52.sourceforge.net/ for updates.
+ *
+ * a52dec is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * a52dec is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef MM_ACCEL_H
+#define MM_ACCEL_H
+
+/* generic accelerations */
+#define MM_ACCEL_DJBFFT 0x80000000
+
+/* x86 accelerations */
+#define MM_ACCEL_X86_MMX 1
+#define MM_ACCEL_X86_3DNOW 2
+#define MM_ACCEL_X86_MMXEXT 4
+
+#endif /* MM_ACCEL_H */
|