Include alsa headers before the internal FFmpeg headers.
authorMatthieu Castet <castet.matthieu@free.fr>
Sun, 29 Nov 2009 23:30:46 +0000 (23:30 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 29 Nov 2009 23:30:46 +0000 (23:30 +0000)
commit419bddd36692ebdbba88089b9acb702639f2f0f1
treee9d698fdb1c0a916fcf83a0419f9bbc102fbef04
parent992f8eaee7080ab2e67cacd8851ca334f69156b3
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
libavdevice/alsa-audio-dec.c
libavdevice/alsa-audio-enc.c