summaryrefslogtreecommitdiff
path: root/libavcodec/aaccoder.c
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-05-11 13:51:11 +0200
committerReinhard Tartler <siretart@tauware.de>2011-05-11 14:38:14 +0200
commit083e715f339e4546e9be8a6e265360be87cca517 (patch)
tree8b11ead997abae8c44e354bbf0f9dd90304b6126 /libavcodec/aaccoder.c
parent5c511ad4ce20aff96ec587de1a8be6f28aed4544 (diff)
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
Diffstat (limited to 'libavcodec/aaccoder.c')
-rw-r--r--libavcodec/aaccoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index 15fe430732..83d3734089 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] = {