[MPlayer-dev-eng] Re: [PATCH] libfaad2 fix for big endian system.

adland123 adland123 at yahoo.com
Sun Oct 17 04:15:53 CEST 2004


I spent some time to test the newest CVS code changes with same result.
I was however able to fix issue using origional source and a small change
 to last proposed patch. (attached below)
I would need you to test functionality on BIG ENDIAN hardware is still same.
thanks

--- main/libfaad2/common.h      2004-09-27 13:30:39.000000000 -0400
+++ updated/libfaad2/common.h   2004-10-16 22:07:31.000000000 -0400
@@ -39,9 +39,7 @@
 #define __STRICT_ANSI__
 #endif

-#ifdef HAVE_CONFIG_H
-#  include "../config.h"
-#endif
+#include "../config.h"

 #define INLINE __inline
 #if 0 //defined(_WIN32) && !defined(_WIN32_WCE)
@@ -201,10 +199,6 @@
 /* Define if you have the ANSI C header files. */
 #define STDC_HEADERS 1

-#ifdef HAVE_CONFIG_H
-#  include "../config.h"
-#endif
-
 #include <stdio.h>
 #if HAVE_SYS_TYPES_H
 # include <sys/types.h>
@@ -375,6 +369,8 @@

   #else

+#include <math.h>
+
 #ifdef HAVE_LRINTF
 #  define HAS_LRINTF
 #  define _ISOC9X_SOURCE 1
@@ -383,8 +379,6 @@
 #  define __USE_ISOC99   1
 #endif

-    #include <math.h>
-
 #ifdef HAVE_SINF
 #  define sin sinf
 #error







More information about the MPlayer-dev-eng mailing list