[FFmpeg-cvslog] aac: workaround for compilation on cygwin
Reinhard Tartler
git at videolan.org
Thu May 12 04:55:13 CEST 2011
ffmpeg | branch: master | Reinhard Tartler <siretart at tauware.de> | Wed May 11 13:51:11 2011 +0200| [083e715f339e4546e9be8a6e265360be87cca517] | committer: Reinhard Tartler
aac: workaround for compilation on cygwin
On cygwin, math.h needs to be included before float.h because of a bug
in the system headers. Including libavutil/libm.h first works around
this issue.
Longer discussion of the topic:
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/128582
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=083e715f339e4546e9be8a6e265360be87cca517
---
libavcodec/aaccoder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index 15fe430..83d3734 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -30,13 +30,14 @@
* add sane pulse detection
***********************************/
+#include "libavutil/libm.h" // brought forward to work around cygwin header breakage
+
#include <float.h>
#include "avcodec.h"
#include "put_bits.h"
#include "aac.h"
#include "aacenc.h"
#include "aactab.h"
-#include "libavutil/libm.h"
/** bits needed to code codebook run value for long windows */
static const uint8_t run_value_bits_long[64] = {
More information about the ffmpeg-cvslog
mailing list