Browse Source

Include alsa headers before the internal FFmpeg headers.

This avoids symbol redefinitions problems, for example avoids the "free"
symbol to be redefined before system headers actually using it are
included, thus breaking compilation. In particular this change allows
to build FFmpeg with salsa.

Patch by matthieu castet <$surname.mat?hieu@free fr>.

Originally committed as revision 20665 to svn://svn.ffmpeg.org/ffmpeg/trunk
Matthieu Castet 15 years ago
parent
commit
419bddd366
3 changed files with 3 additions and 3 deletions
  1. 1 1
      libavdevice/alsa-audio-common.c
  2. 1 1
      libavdevice/alsa-audio-dec.c
  3. 1 1
      libavdevice/alsa-audio-enc.c

+ 1 - 1
libavdevice/alsa-audio-common.c

@@ -28,8 +28,8 @@
  * @author Nicolas George ( nicolas george normalesup org )
  */
 
-#include "libavformat/avformat.h"
 #include <alsa/asoundlib.h>
+#include "libavformat/avformat.h"
 
 #include "alsa-audio.h"
 

+ 1 - 1
libavdevice/alsa-audio-dec.c

@@ -45,8 +45,8 @@
  * plugin.
  */
 
-#include "libavformat/avformat.h"
 #include <alsa/asoundlib.h>
+#include "libavformat/avformat.h"
 
 #include "alsa-audio.h"
 

+ 1 - 1
libavdevice/alsa-audio-enc.c

@@ -37,8 +37,8 @@
  * which gives a low latency suitable for real-time playback.
  */
 
-#include "libavformat/avformat.h"
 #include <alsa/asoundlib.h>
+#include "libavformat/avformat.h"
 
 #include "alsa-audio.h"