summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/en/mplayer.18
-rw-r--r--DOCS/man/it/mplayer.112
-rw-r--r--DOCS/xml/en/codecs.xml12
-rw-r--r--Makefile10
-rwxr-xr-xconfigure415
-rw-r--r--etc/codecs.conf1
-rw-r--r--help/help_mp-en.h4
-rw-r--r--help/help_mp-it.h6
-rw-r--r--libao2/ao_pcm.c17
-rw-r--r--libao2/ao_pulse.c11
-rw-r--r--libass/ass.c6
-rw-r--r--libass/ass_fontconfig.c67
-rw-r--r--libmpcodecs/vd_libmpeg2.c11
-rw-r--r--libmpcodecs/ve_x264.c22
-rw-r--r--libmpdemux/demux_asf.c6
-rw-r--r--libmpdemux/demux_ty_osd.c2
-rw-r--r--libmpeg2/attributes.h4
-rw-r--r--libmpeg2/cpu_state.c2
-rw-r--r--libmpeg2/idct.c2
-rw-r--r--libmpeg2/idct_alpha.c4
-rw-r--r--libmpeg2/libmpeg-0.4.1.diff23
-rw-r--r--libmpeg2/motion_comp.c2
-rw-r--r--libswscale/Makefile8
-rw-r--r--libswscale/yuv2rgb.c8
-rw-r--r--libvo/vo_gl.c8
-rw-r--r--mencoder.c2
-rw-r--r--stream/librtsp/rtsp_rtp.h1
-rw-r--r--stream/librtsp/rtsp_session.h2
28 files changed, 304 insertions, 372 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index 3dbd8b8946..b1493742f0 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -151,7 +151,7 @@ architectures, see the documentation).
It plays most MPEG/\:VOB, AVI, ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM,
MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many
native and binary codecs.
-You can watch Video CD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies,
+You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies,
too.
.PP
MPlayer supports a wide range of video and audio output drivers.
@@ -3746,8 +3746,10 @@ Disabling might increase speed.
.
.TP
.B "gl2\ \ \ \ "
-OpenGL video output driver, second generation.
-Supports OSD and videos larger than the maximum texture size.
+Variant of the OpenGL video output driver.
+Supports videos larger than the maximum texture size but lacks many of the
+advanced features and optimizations of the gl driver and is unlikely to be
+extended further.
.PD 0
.RSs
.IPs (no)glfinish
diff --git a/DOCS/man/it/mplayer.1 b/DOCS/man/it/mplayer.1
index 0b7ef6361d..16d33f1e7a 100644
--- a/DOCS/man/it/mplayer.1
+++ b/DOCS/man/it/mplayer.1
@@ -1,4 +1,4 @@
-.\" synced with r26460
+.\" synced with r26674
.\" Encoding: iso-8859-1
.\" MPlayer (C) 2000-2008 MPlayer Team
.\" Questa pagina di manuale è stata fatta da Gabucino, Diego Biurrun,
@@ -156,8 +156,8 @@ architetture di CPU, controlla la documentazione).
Visualizza la maggior parte dei file del tipo MPEG/\:VOB, AVI,
ASF/\:WMA/\:WMV, RM, QT/\:MOV/\:MP4, Ogg/\:OGM, MKV, VIVO, FLI, NuppelVideo,
yuv4mpeg, FILM e RoQ, supportato da molti codec nativi o binari.
-Puoi guardare Video CD, SVCD, DVD, 3ivx, DivX 3/4/5 ed addirittura film in
-formato WMV.
+Puoi guardare VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV ed addirittura filmati
+con codifica H.264.
.PP
MPlayer supporta un'ampia gamma di driver di uscita video ed audio.
Funziona con X11, XV, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB,
@@ -3920,8 +3920,10 @@ Disabilitarlo può incrementare la velocità.
.
.TP
.B "gl2\ \ \ \ "
-Driver di uscita video OpenGL, seconda generazione.
-Supporta OSD e video più grandi della dimensione massima della texture.
+Driver alternativo di uscita video OpenGL.
+Supporta video più grandi della dimensione massima della texture, ma manca di
+molte funzionalità avanzate e ottimizzazioni rispetto al driver gl e
+difficilmente verrà sviluppato ulteriormente.
.PD 0
.RSs
.IPs (no)glfinish
diff --git a/DOCS/xml/en/codecs.xml b/DOCS/xml/en/codecs.xml
index f1a7bce4c3..6fed5cc4c6 100644
--- a/DOCS/xml/en/codecs.xml
+++ b/DOCS/xml/en/codecs.xml
@@ -192,8 +192,8 @@ default as it offers better speed.
<para>
<ulink url="http://developers.videolan.org/x264.html"><systemitem class="library">x264</systemitem></ulink>
is a library for creating H.264 video streams.
-It is not 100% complete, but currently it has at least some kind
-of support for most of the H.264 features which impact quality.
+It is not 100% complete, but supports most of H.264's features which impact
+quality.
There are also many advanced features in the H.264 specification
which have nothing to do with video quality per se; many of these
are not yet implemented in <systemitem class="library">x264</systemitem>.
@@ -303,17 +303,17 @@ H.264 decoding, you might keep an eye on
and <systemitem class="library">x264</systemitem>?</title>
<para>
-If you have the subversion client installed, the latest x264
+If you have the GIT client installed, the latest x264
sources can be gotten with this command:
-<screen>svn co svn://svn.videolan.org/x264/trunk x264</screen>
+<screen>git clone git://git.videolan.org/x264.git</screen>
<application>MPlayer</application> sources are updated whenever
an <systemitem class="library">x264</systemitem> API change
occurs, so it is always suggested to use
-<application>MPlayer</application> from Subversion as well.
+<application>MPlayer</application> from GIT as well.
Perhaps this situation will change when and if an
<systemitem class="library">x264</systemitem> "release" occurs.
Meanwhile, <systemitem class="library">x264</systemitem> should
-be considered very unstable, in the sense that its programming
+be considered a bit unstable, in the sense that its programming
interface is subject to change.
</para>
diff --git a/Makefile b/Makefile
index 9af84f9c17..8bd1ca610b 100644
--- a/Makefile
+++ b/Makefile
@@ -378,6 +378,7 @@ SRCS_COMMON-$(MPLAYER_NETWORK) += stream/stream_netstream.c \
stream/tcp.c \
stream/stream_rtp.c \
stream/stream_udp.c \
+ stream/librtsp/rtsp.c \
stream/realrtsp/asmrp.c \
stream/realrtsp/real.c \
stream/realrtsp/rmff.c \
@@ -693,10 +694,7 @@ DIRS = . \
TOOLS \
vidix \
-all: recurse $(ALL_PRG)
-
-recurse:
- for part in $(PARTS); do $(MAKE) -C $$part; done
+all: $(ALL_PRG)
%.d: %.c
$(MPDEPEND_CMD) > $@
@@ -747,7 +745,7 @@ ifneq ($(HELP_FILE),help/help_mp-en.h)
endif
define RECURSIVE_RULE
-$(part)/$(notdir $(part)).a:
+$(part)/$(notdir $(part)).a: recurse
$(MAKE) -C $(part)
endef
@@ -897,7 +895,7 @@ TAGS:
tags:
rm -f $@; ( find -name '*.[chS]' -print ) | xargs ctags -a
-ALLHEADERS = $(wildcard *.h)
+ALLHEADERS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.h))
checkheaders: $(ALLHEADERS:.h=.ho)
# ./configure must be rerun if it changed
diff --git a/configure b/configure
index b8071473b4..3d14b915a9 100755
--- a/configure
+++ b/configure
@@ -433,9 +433,6 @@ Advanced options:
--enable-crash-debug enable automatic gdb attach on crash [disable]
--enable-dynamic-plugins enable dynamic A/V plugins [disable]
-Hazardous options AKA "DO NOT REPORT ANY BUGS!"
- --disable-gcc-check disable gcc version checking [enable]
-
Use these options if autodetection fails (Options marked with (*) accept
multiple paths separated by ':'):
--extra-libs=FLAGS extra linker flags
@@ -484,7 +481,6 @@ _windres=windres
_cc=cc
_ar=ar
test "$CC" && _cc="$CC"
-_gcc_check=yes
_as=auto
_runtime_cpudetection=no
_cross_compile=auto
@@ -495,17 +491,17 @@ _libavcodec_a=auto
_libamr_nb=auto
_libamr_wb=auto
_libavdecoders_all=`sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`
-_libavdecoders=` echo $_libavdecoders_all | sed -e s/LIBFAAD_DECODER// -e s/MPEG4AAC_DECODER// -e s/LIBA52_DECODER// -e s/LIBGSM_DECODER// -e s/LIBGSM_MS_DECODER// -e s/LIBVORBIS_DECODER// `
+_libavdecoders=` echo $_libavdecoders_all | sed -e 's/ LIB[A-Z0-9_]*_DECODER//g' -e s/MPEG4AAC_DECODER// `
_libavencoders_all=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`
-_libavencoders=` echo $_libavencoders_all | sed -e s/LIBGSM_ENCODER// -e s/LIBGSM_MS_ENCODER// -e s/LIBTHEORA_ENCODER// -e s/LIBVORBIS_ENCODER// `
+_libavencoders=` echo $_libavencoders_all | sed 's/ LIB[A-Z0-9_]*_ENCODER//g'`
_libavparsers_all=`sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`
_libavparsers=$_libavparsers_all
_libavbsfs_all=`sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`
_libavbsfs=$_libavbsfs_all
_libavdemuxers_all=`sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]'`
-_libavdemuxers=`echo $_libavdemuxers_all | sed -e s/REDIR_DEMUXER// -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/LIBNUT_DEMUXER// -e s/AVISYNTH_DEMUXER// `
+_libavdemuxers=`echo $_libavdemuxers_all | sed -e 's/ LIB[A-Z0-9_]*_DEMUXER//g' -e s/REDIR_DEMUXER// -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/AVISYNTH_DEMUXER// `
_libavmuxers_all=`sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]'`
-_libavmuxers=`echo $_libavmuxers_all | sed -e s/RTP_MUXER// `
+_libavmuxers=`echo $_libavmuxers_all | sed -e 's/ LIB[A-Z0-9_]*_MUXER//g' -e s/RTP_MUXER// `
_libavprotocols_all=`sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' ffmpeg/libavformat/allformats.c | tr '[a-z]' '[A-Z]'`
_libavcodec_so=auto
_libavformat_a=auto
@@ -806,8 +802,6 @@ for ac_option do
--disable-debug)
_debug=
;;
- --enable-gcc-check) _gcc_check=yes ;;
- --disable-gcc-check) _gcc_check=no ;;
--enable-runtime-cpudetection) _runtime_cpudetection=yes ;;
--disable-runtime-cpudetection) _runtime_cpudetection=no ;;
--enable-cross-compile) _cross_compile=yes ;;
@@ -1409,9 +1403,8 @@ else
fi
# Checking CC version...
-if test "$_gcc_check" = yes ; then
- # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure)
- if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then
+# Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure)
+if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then
echocheck "$_cc version"
cc_vendor=intel
cc_name=`$_cc -V 2>&1 | _head 1 | cut -d ',' -f 1`
@@ -1422,99 +1415,45 @@ if test "$_gcc_check" = yes ; then
case $cc_version in
'')
cc_version="v. ?.??, bad"
- cc_verc_fail=yes
+ cc_fail=yes
;;
10.1)
cc_version="$cc_version, ok"
- cc_verc_fail=no
- ;;
- *)
- cc_version="$cc_version, bad"
- cc_verc_fail=yes
- ;;
- esac
- echores "$cc_version"
- else
- for _cc in "$_cc" gcc cc ; do
- echocheck "$_cc version"
- cc_vendor=gnu
- cc_name=`$_cc -v 2>&1 | _tail 1 | cut -d ' ' -f 1`
- cc_version=`$_cc -dumpversion 2>&1`
- if test "$?" -gt 0; then
- cc_version="not found"
- fi
- case $cc_version in
- '')
- cc_version="v. ?.??, bad"
- cc_verc_fail=yes
- ;;
- 2.95.[2-9]|2.95.[2-9][-.]*|[3-4].*)
- _cc_major=`echo $cc_version | cut -d '.' -f 1`
- _cc_minor=`echo $cc_version | cut -d '.' -f 2`
- _cc_mini=`echo $cc_version | cut -d '.' -f 3`
- cc_version="$cc_version, ok"
- cc_verc_fail=no
- ;;
- 'not found')
- cc_verc_fail=yes
;;
*)
cc_version="$cc_version, bad"
- cc_verc_fail=yes
+ cc_fail=yes
;;
esac
echores "$cc_version"
- test "$cc_verc_fail" = "no" && break
- done
- fi # icc
- if test "$cc_verc_fail" = yes ; then
- cat <<EOF
-
-*** Please downgrade/upgrade C compiler to version gcc-2.95, 3.x or 4.x! ***
-
-You are not using a supported compiler. We do not have the time to make sure
-everything works with compilers other than the ones we use. Use either the
-same compiler as we do, or use --disable-gcc-check but DO *NOT* REPORT BUGS
-unless you can reproduce them after recompiling with a 2.95.x or 3/4.x version!
-
-Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
-mplayer and lame (which is used for mencoder). If you get compile errors,
-first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
-If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
-bugs!
-
- GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
-
-EOF
- die "Bad gcc version"
- fi
else
-cat <<EOF
-
-******************************************************************************
-
-Hmm. You really want to compile MPlayer with an *UNSUPPORTED* C compiler?
-Ok. You know. Do it.
-
-DO NOT SEND BUGREPORTS OR COMPLAIN, it's *YOUR* compiler's fault!
-Get ready for mysterious crashes, no-picture bugs, strange noises... REALLY!
-Lame which is used by mencoder produces weird errors, too.
-
-If you have any problem, install a GCC 2.95.x or 3.x version and try again.
-If the problem _still_ exists, then read DOCS/HTML/en/bugreports.html !
-
- *** DO NOT SEND BUG REPORTS OR COMPLAIN it's *YOUR* compiler's fault! ***
-
-******************************************************************************
-
-EOF
-
-read _answer
+ for _cc in "$_cc" cc gcc ; do
+ cc_name_tmp=`$_cc -v 2>&1 | _tail 1 | cut -d ' ' -f 1`
+ if test "$cc_name_tmp" = "gcc"; then
+ cc_name=$cc_name_tmp
+ echocheck "$_cc version"
+ cc_vendor=gnu
+ cc_version=`$_cc -dumpversion 2>&1`
+ case $cc_version in
+ 2.96*)
+ cc_fail=yes
+ ;;
+ *)
+ _cc_major=`echo $cc_version | cut -d '.' -f 1`
+ _cc_minor=`echo $cc_version | cut -d '.' -f 2`
+ _cc_mini=`echo $cc_version | cut -d '.' -f 3`
+ ;;
+ esac
+ echores "$cc_version"
+ break
+ fi
+ done
+fi # icc
+test "$cc_fail" = yes && die "unsupported compiler version"
-fi
echocheck "host cc"
test "$_host_cc" || _host_cc=$_cc
-echores $_host_cc
+echores $_host_cc
echocheck "cross compilation"
if test $_cross_compile = auto ; then
@@ -1604,7 +1543,7 @@ if x86 && test "$_runtime_cpudetection" = no ; then
cat > $TMPC <<EOF
#include <signal.h>
void catch() { exit(1); }
-int main(void){
+int main(void) {
signal(SIGILL, catch);
__asm__ __volatile__ ("$3":::"memory");return(0);
}
@@ -1809,7 +1748,7 @@ EOF
if ! cc_check -march=$proc $cpuopt=$proc; then
if cc_check -march=i586 $cpuopt=i686; then
proc=i586-i686
- else
+ else
proc=i586
fi
fi
@@ -1865,11 +1804,11 @@ EOF
if test "$host_arch" = "i586-i686"; then
_march="-march=i586"
_mcpu="$cpuopt=i686"
- else
+ else
_march="-march=$host_arch"
_mcpu="$cpuopt=$host_arch"
fi
-
+
proc="$host_arch"
case "$proc" in
@@ -1976,7 +1915,7 @@ EOF
cc_check $_mcpu || _mcpu=""
cc_check $_march $_mcpu || _march=""
fi
-
+
_optimizing=""
echores "$proc"
@@ -1991,7 +1930,7 @@ EOF
karch=`uname -m`
case "`echo $karch`" in
sun4) proc=v7 ;;
- sun4c) proc=v7 ;;
+ sun4c) proc=v7 ;;
sun4d) proc=v8 ;;
sun4m) proc=v8 ;;
sun4u) proc=ultrasparc _vis='yes' ;;
@@ -2155,7 +2094,7 @@ EOF
_target_arch='ARCH_ALPHA = yes'
iproc='alpha'
_march=''
-
+
echocheck "CPU type"
cat > $TMPC << EOF
int main(void) {
@@ -2178,7 +2117,7 @@ EOF
2-1307) proc="ev68"; _mvi="1";;
esac
echores "$proc"
-
+
echocheck "GCC & CPU optimization abilities"
if test "$proc" = "ev68" ; then
cc_check -mcpu=$proc || proc=ev67
@@ -2188,7 +2127,7 @@ EOF
fi
_mcpu="-mcpu=$proc"
echores "$proc"
-
+
_optimizing="$proc"
;;
@@ -2453,68 +2392,57 @@ echores $_asmalign_pot
#FIXME: This should happen before the check for CFLAGS..
if ppc ; then
-
+
# check if altivec is supported by the compiler, and how to enable it
_altivec_gcc_flags=''
- if test "$_altivec" = yes -o "$_runtime_cpudetection" = yes ; then
- echocheck "GCC altivec support"
-
- p=''
- cat > $TMPC << EOF
-int main(void) {
- return 0;
-}
-EOF
- FSF_flags='-maltivec -mabi=altivec'
- Darwin_flags='-faltivec'
+ echocheck "GCC altivec support"
- # check for Darwin-style flags first, since
- # gcc-3.3 (August Update from Apple) on MacOS 10.2.8
- # accepts but ignores FSF-style flags...
+ p=''
+ cat > $TMPC << EOF
+int main(void) { return 0; }
+EOF
+ FSF_flags='-maltivec -mabi=altivec'
+ Darwin_flags='-faltivec'
- if test -z "$p"; then
- cc_check $Darwin_flags && p='Darwin'
- fi
- if test -z "$p"; then
- cc_check $FSF_flags && p='FSF'
- fi
+ # check for Darwin-style flags first, since gcc-3.3 (August Update
+ # from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
- case $p in
- FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
- Darwin) _altivec_gcc_flags="$Darwin_flags" _altivec=yes ;;
- *) _altivec=no ;;
- esac
+ if test -z "$p"; then
+ cc_check $Darwin_flags && p='Darwin'
+ fi
+ if test -z "$p"; then
+ cc_check $FSF_flags && p='FSF'
+ fi
- if test -z "$p"; then
- p=none
- else
- p="$p-style ($_altivec_gcc_flags)"
- fi
+ case $p in
+ FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
+ Darwin) _altivec_gcc_flags="$Darwin_flags" _altivec=yes ;;
+ *) _altivec=no ;;
+ esac
- echores "$p"
+ if test -z "$p"; then
+ p=none
+ else
+ p="$p-style ($_altivec_gcc_flags)"
fi
- # check if <altivec.h> should be included
+ echores "$p"
+ # check if <altivec.h> should be included
+ echocheck "altivec.h"
_def_altivec_h='#undef HAVE_ALTIVEC_H'
-
- if test "$_altivec" = yes ; then
- echocheck "altivec.h"
- cat > $TMPC << EOF
+ _have_altivec_h=no
+ cat > $TMPC << EOF
#include <altivec.h>
int main(void) { return 0; }
EOF
- _have_altivec_h=no
- cc_check $_altivec_gcc_flags && _have_altivec_h=yes
- if test "$_have_altivec_h" = yes ; then
- _def_altivec_h='#define HAVE_ALTIVEC_H 1'
- fi
- echores "$_have_altivec_h"
- fi
+ cc_check $_altivec_gcc_flags && _have_altivec_h=yes \
+ && _def_altivec_h='#define HAVE_ALTIVEC_H 1'
+ echores "$_have_altivec_h"
- # disable runtime cpudetection if
+ # disable runtime cpudetection if
# - we cannot generate altivec code
# - altivec is disabled by the user
@@ -2541,9 +2469,7 @@ if arm ; then
echocheck "ARMv5TE (Enhanced DSP Extensions)"
if test $_armv5te = "auto" ; then
cat > $TMPC << EOF
-int main(void) {
- __asm__ __volatile__ ("qadd r0, r0, r0");
-}
+int main(void) { __asm__ __volatile__ ("qadd r0, r0, r0"); }
EOF
_armv5te=no
cc_check && _armv5te=yes
@@ -2563,9 +2489,7 @@ EOF
echocheck "iWMMXt (Intel XScale SIMD instructions)"
if test $_iwmmxt = "auto" ; then
cat > $TMPC << EOF
-int main(void) {
- __asm__ __volatile__ ("wunpckelub wr6, wr4");
-}
+int main(void) { __asm__ __volatile__ ("wunpckelub wr6, wr4"); }
EOF
_iwmmxt=no
cc_check && _iwmmxt=yes
@@ -2709,7 +2633,7 @@ echores "$_runtime_cpudetection"
echocheck "restrict keyword"
for restrict_keyword in restrict __restrict __restrict__ ; do
- echo "void foo(char * $restrict_keyword p); int main(void){}" > $TMPC
+ echo "void foo(char * $restrict_keyword p); int main(void) {}" > $TMPC
if cc_check; then
_def_restrict_keyword=$restrict_keyword
break;
@@ -2881,7 +2805,7 @@ elif cc_check $_ld_sock -lresolv ; then
else
_res_comment="trying inet_aton next"
echores "no"
-
+
echocheck "inet_aton()"
cat > $TMPC << EOF
#include <sys/types.h>
@@ -2951,14 +2875,14 @@ fi
echocheck "int_fastXY_t in inttypes.h"
cat > $TMPC << EOF
#include <inttypes.h>
-int main(void) {
+int main(void) {
volatile int_fast16_t v= 0;
return v; }
EOF
_fast_inttypes=no
cc_check && _fast_inttypes=yes
if test "$_fast_inttypes" = no ; then
- _def_fast_inttypes='
+ _def_fast_inttypes='
typedef signed char int_fast8_t;
typedef signed int int_fast16_t;
typedef signed int int_fast32_t;
@@ -3003,7 +2927,7 @@ echocheck "memalign()"
# XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
cat > $TMPC << EOF
#include <malloc.h>
-int main (void) { (void) memalign(64, sizeof(char)); return 0; }
+int main(void) { (void) memalign(64, sizeof(char)); return 0; }
EOF
_memalign=no
cc_check && _memalign=yes
@@ -3326,10 +3250,10 @@ fi #if hpux
if sunos; then
echocheck "userspace SCSI headers (Solaris)"
cat > $TMPC << EOF
-# include <unistd.h>
-# include <stropts.h>
-# include <sys/scsi/scsi_types.h>
-# include <sys/scsi/impl/uscsi.h>
+#include <unistd.h>
+#include <stropts.h>
+#include <sys/scsi/scsi_types.h>
+#include <sys/scsi/impl/uscsi.h>
int main(void) { return 0; }
EOF
_sol_scsi_h=no
@@ -3410,7 +3334,7 @@ echores "$_shm"
echocheck "strsep()"
cat > $TMPC << EOF
#include <string.h>
-int main (void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; }
+int main(void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; }
EOF
_strsep=no
cc_check && _strsep=yes
@@ -3514,7 +3438,7 @@ echores "$_glob"
echocheck "setenv()"
cat > $TMPC << EOF
#include <stdlib.h>
-int main (void){ setenv("","",0); return 0; }
+int main(void) { setenv("","",0); return 0; }
EOF
_setenv=no
cc_check && _setenv=yes
@@ -3532,15 +3456,15 @@ if sunos; then
echocheck "sysi86()"
cat > $TMPC << EOF
#include <sys/sysi86.h>
-int main (void) { sysi86(0); return 0; }
+int main(void) { sysi86(0); return 0; }
EOF
_sysi86=no
cc_check && _sysi86=yes
if test "$_sysi86" = yes ; then
_def_sysi86='#define HAVE_SYSI86 1'
cat > $TMPC << EOF
- #include <sys/sysi86.h>
- int main (void) { int sysi86(int, void*); sysi86(0); return 0; }
+#include <sys/sysi86.h>
+int main(void) { int sysi86(int, void*); sysi86(0); return 0; }
EOF
cc_check && _def_sysi86_iv='#define HAVE_SYSI86_iv 1'
else
@@ -3594,7 +3518,7 @@ int main(void) {
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
}
EOF
- if cc_check -framework Carbon -framework QuickTime -framework CoreAudio; then
+ if cc_check -framework Carbon -framework QuickTime -framework CoreAudio; then
_ld_extra="$_ld_extra -framework Carbon -framework QuickTime -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
_coreaudio=yes
_def_coreaudio='#define HAVE_COREAUDIO 1'
@@ -3642,7 +3566,7 @@ if test "$_macosx_finder_support" = yes; then
else
_def_macosx_finder_support='#undef MACOSX_FINDER_SUPPORT'
_macosx_finder_support=no
-fi
+fi
echores "$_macosx_finder_support"
echocheck "Mac OS X Bundle file locations"
@@ -3654,7 +3578,7 @@ if test "$_macosx_bundle" = yes; then
else
_def_macosx_bundle='#undef MACOSX_BUNDLE'
_macosx_bundle=no
-fi
+fi
echores "$_macosx_bundle"
echocheck "Apple Remote"
@@ -3663,8 +3587,7 @@ if test "$_apple_remote" = auto ; then
cat > $TMPC <<EOF
#include <stdio.h>
#include <IOKit/IOCFPlugIn.h>
-int main (int argc, const char * argv[])
-{
+int main(void) {
io_iterator_t hidObjectIterator = (io_iterator_t)NULL;
CFMutableDictionaryRef hidMatchDictionary;
IOReturn ioReturnValue;
@@ -3784,7 +3707,6 @@ cat > $TMPC << EOF
int main(void) {
struct vis_identifier ident;
struct fbgattr attr;
-
ioctl(0, VIS_GETIDENTIFIER, &ident);
ioctl(0, FBIOGATTR, &attr);
}
@@ -3964,10 +3886,7 @@ if test "$_xss" = auto ; then
cat > $TMPC << EOF
#include <X11/Xlib.h>
#include <X11/extensions/scrnsaver.h>
-int main(void) {
- XScreenSaverSuspend(NULL, True);
- return 0;
-}
+int main(void) { XScreenSaverSuspend(NULL, True); return 0; }
EOF
_xss=no
cc_check -lXss && _xss=yes
@@ -3990,17 +3909,13 @@ if test "$_x11" = yes ; then
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/dpms.h>
-int main(void) {
- (void) DPMSQueryExtension(0, 0, 0);
-}
+int main(void) { (void) DPMSQueryExtension(0, 0, 0); }
EOF
cc_check -lXdpms && _xdpms3=yes
cat > $TMPC <<EOF
#include <X11/Xlib.h>
#include <X11/extensions/dpms.h>
-int main(void) {
- (void) DPMSQueryExtension(0, 0, 0);
-}
+int main(void) { (void) DPMSQueryExtension(0, 0, 0); }
EOF
cc_check -lXext && _xdpms4=yes
fi
@@ -4052,7 +3967,7 @@ if test "$_xv" = yes && test "$_xvmc" != no ; then
#include <X11/Xlib.h>
#include <X11/extensions/Xvlib.h>
#include <X11/extensions/XvMClib.h>
-int main(void) {
+int main(void) {
(void) XvMCQueryExtension(0,0,0);
(void) XvMCCreateContext(0,0,0,0,0,0,0);
return 0; }
@@ -4144,7 +4059,7 @@ if test "$_dga2" = auto && test "$_x11" = yes ; then
cat > $TMPC << EOF
#include <X11/Xlib.h>
#include <X11/extensions/xf86dga.h>
-int main (void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; }
+int main(void) { (void) XDGASetViewport(0, 0, 0, 0, 0); return 0; }
EOF
_dga2=no
cc_check -lXxf86dga && _dga2=yes
@@ -4153,7 +4068,7 @@ if test "$_dga1" = auto && test "$_dga2" = no && test "$_vm" = yes ; then
cat > $TMPC << EOF
#include <X11/Xlib.h>
#include <X11/extensions/xf86dga.h>
-int main (void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; }
+int main(void) { (void) XF86DGASetViewPort(0, 0, 0, 0); return 0; }
EOF
_dga1=no
cc_check -lXxf86dga -lXxf86vm && _dga1=yes
@@ -4237,7 +4152,7 @@ if test "$_gl" = yes ; then
_def_gl='#define HAVE_GL 1'
_vosrc="$_vosrc vo_gl.c vo_gl2.c gl_common.c"
if test "$_gl_win32" = yes ; then
- _def_gl_win32='#define GL_WIN32 1'
+ _def_gl_win32='#define GL_WIN32 1'
_vosrc="$_vosrc w32_common.c"
_res_comment="win32 version"
fi
@@ -4532,7 +4447,6 @@ cat >$TMPC << EOF
#include <stdio.h>
#include <time.h>
#include <unistd.h>
-
#include <ost/dmx.h>
#include <ost/frontend.h>
#include <ost/sec.h>
@@ -4563,7 +4477,6 @@ cat >$TMPC << EOF
#include <stdio.h>
#include <time.h>
#include <unistd.h>
-
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
#include <linux/dvb/video.h>
@@ -4647,9 +4560,7 @@ cat > $TMPC << EOF
#include <setjmp.h>
#include <string.h>
#include <jpeglib.h>
-int main(void) {
- return 0;
-}
+int main(void) { return 0; }
EOF
if cc_check -ljpeg $_ld_lm ; then
if tmp_run ; then
@@ -4697,9 +4608,7 @@ if test "$_gif" = auto ; then
_gif=no
cat > $TMPC << EOF
#include <gif_lib.h>
-int main(void) {
- return 0;
-}
+int main(void) { return 0; }
EOF
for _ld_gif in "-lungif" "-lgif" ; do
cc_check $_ld_gif && tmp_run && _gif=yes && break
@@ -4813,7 +4722,7 @@ fi
if test "$_sdl" = auto || test "$_sdl" = yes ; then
cat > $TMPC << EOF
#include <SDL.h>
-int main(int argc, char *argv[]) {
+int main(void) {
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE);
return 0;
}
@@ -4983,7 +4892,7 @@ if test "$_ivtv" = auto ; then
#include <linux/videodev2.h>
#include <linux/ivtv.h>
#include <sys/ioctl.h>
-int main(void) {
+int main(void) {
struct ivtv_cfg_stop_decode sd;
struct ivtv_cfg_start_decode sd1;
ioctl (0, IVTV_IOC_START_DECODE, &sd1);
@@ -5086,7 +4995,7 @@ EOF
_def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
fi
_def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
- fi
+ fi
else
_def_ossaudio='#undef USE_OSS_AUDIO'
_def_ossaudio_devdsp='#define PATH_DEV_DSP ""'
@@ -5505,10 +5414,7 @@ if test "$_cdparanoia" = auto ; then
#include <cdda_interface.h>
#include <cdda_paranoia.h>
// This need a better test. How ?
-int main(void) {
- void *test = cdda_verbose_set;
- return test == (void *)1;
-}
+int main(void) { void *test = cdda_verbose_set; return test == (void *)1; }
EOF
_cdparanoia=no
for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
@@ -5531,12 +5437,10 @@ if test "$_libcdio" = auto && test "$_cdparanoia" = no ; then
#include <cdio/version.h>
#include <cdio/cdda.h>
#include <cdio/paranoia.h>
-int main(void)
-{
+int main(void) {
void *test = cdda_verbose_set;
printf("%s\n", CDIO_VERSION);
return test == (void *)1;
-
}
EOF
_libcdio=no
@@ -5609,8 +5513,7 @@ if test "$_freetype" = auto ; then
#if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9)))
#error "Need FreeType 2.0.9 or newer"
#endif
-int main(void)
-{
+int main(void) {
FT_Library library;
FT_Int major=-1,minor=-1,patch=-1;
int err=FT_Init_FreeType(&library);
@@ -5653,15 +5556,13 @@ if test "$_fontconfig" = auto ; then
cat > $TMPC << EOF
#include <stdio.h>
#include <fontconfig/fontconfig.h>
-int main(void)
-{
+int main(void) {
int err = FcInit();
if(err == FcFalse){
printf("Couldn't initialize fontconfig lib\n");
exit(err);
}
return 0;
-
}