aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/alsa-audio-dec.c
diff options
context:
space:
mode:
authorMatthieu Castet <castet.matthieu@free.fr>2009-11-29 23:30:46 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-11-29 23:30:46 +0000
commit419bddd36692ebdbba88089b9acb702639f2f0f1 (patch)
treee9d698fdb1c0a916fcf83a0419f9bbc102fbef04 /libavdevice/alsa-audio-dec.c
parent992f8eaee7080ab2e67cacd8851ca334f69156b3 (diff)
downloadffmpeg-419bddd36692ebdbba88089b9acb702639f2f0f1.tar.gz
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
Diffstat (limited to 'libavdevice/alsa-audio-dec.c')
-rw-r--r--libavdevice/alsa-audio-dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alsa-audio-dec.c b/libavdevice/alsa-audio-dec.c
index da6746cf18..4dac3f9cb4 100644
--- a/libavdevice/alsa-audio-dec.c
+++ b/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"