From 419bddd36692ebdbba88089b9acb702639f2f0f1 Mon Sep 17 00:00:00 2001 From: Matthieu Castet Date: Sun, 29 Nov 2009 23:30:46 +0000 Subject: [PATCH] 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 --- libavdevice/alsa-audio-common.c | 2 +- libavdevice/alsa-audio-dec.c | 2 +- libavdevice/alsa-audio-enc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index f1d78b0cc5..e125b2d386 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -28,8 +28,8 @@ * @author Nicolas George ( nicolas george normalesup org ) */ -#include "libavformat/avformat.h" #include +#include "libavformat/avformat.h" #include "alsa-audio.h" 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 +#include "libavformat/avformat.h" #include "alsa-audio.h" diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c index 40eb5ba2ac..a0b01449b0 100644 --- a/libavdevice/alsa-audio-enc.c +++ b/libavdevice/alsa-audio-enc.c @@ -37,8 +37,8 @@ * which gives a low latency suitable for real-time playback. */ -#include "libavformat/avformat.h" #include +#include "libavformat/avformat.h" #include "alsa-audio.h"