summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/en/mplayer.13
-rw-r--r--DOCS/man/fr/mplayer.140
-rwxr-xr-xconfigure62
-rw-r--r--cpudetect.c44
-rw-r--r--cpudetect.h2
-rw-r--r--etc/codecs.conf17
-rw-r--r--liba52/a52_internal.h2
-rw-r--r--liba52/bitstream.h2
-rw-r--r--liba52/downmix.c4
-rw-r--r--liba52/imdct.c22
-rw-r--r--liba52/imdct_3dnow.h28
-rw-r--r--liba52/resample.c8
-rw-r--r--liba52/resample_mmx.c2
-rw-r--r--liba52/srfftp_3dnow.h4
-rw-r--r--libaf/af.h2
-rw-r--r--libaf/af_resample.c6
-rw-r--r--libmpcodecs/dec_video.c2
-rw-r--r--libmpcodecs/native/rtjpegn.c53
-rw-r--r--libmpcodecs/pullup.c8
-rw-r--r--libmpcodecs/vd_libmpeg2.c4
-rw-r--r--libmpcodecs/vf_decimate.c4
-rw-r--r--libmpcodecs/vf_divtc.c4
-rw-r--r--libmpcodecs/vf_eq.c4
-rw-r--r--libmpcodecs/vf_eq2.c4
-rw-r--r--libmpcodecs/vf_filmdint.c10
-rw-r--r--libmpcodecs/vf_fspp.c14
-rw-r--r--libmpcodecs/vf_halfpack.c4
-rw-r--r--libmpcodecs/vf_hue.c2
-rw-r--r--libmpcodecs/vf_ilpack.c12
-rw-r--r--libmpcodecs/vf_ivtc.c4
-rw-r--r--libmpcodecs/vf_noise.c14
-rw-r--r--libmpcodecs/vf_pp7.c8
-rw-r--r--libmpcodecs/vf_scale.c2
-rw-r--r--libmpcodecs/vf_spp.c10
-rw-r--r--libmpcodecs/vf_tfields.c12
-rw-r--r--libmpcodecs/vf_unsharp.c4
-rw-r--r--libmpcodecs/vf_uspp.c6
-rw-r--r--libmpcodecs/vf_yadif.c8
-rw-r--r--libmpdemux/asfguid.h2
-rw-r--r--libmpdemux/demux_lavf.c2
-rw-r--r--libmpeg2/cpu_accel.c12
-rw-r--r--libmpeg2/cpu_state.c10
-rw-r--r--libmpeg2/idct.c6
-rw-r--r--libmpeg2/idct_alpha.c2
-rw-r--r--libmpeg2/idct_altivec.c2
-rw-r--r--libmpeg2/idct_mmx.c2
-rw-r--r--libmpeg2/motion_comp.c14
-rw-r--r--libmpeg2/motion_comp_alpha.c2
-rw-r--r--libmpeg2/motion_comp_altivec.c2
-rw-r--r--libmpeg2/motion_comp_arm.c2
-rw-r--r--libmpeg2/motion_comp_mmx.c2
-rw-r--r--libmpeg2/motion_comp_vis.c2
-rw-r--r--libmpeg2/mpeg2_internal.h2
-rw-r--r--libswscale/rgb2rgb.c32
-rw-r--r--libswscale/rgb2rgb_template.c122
-rw-r--r--libswscale/swscale-example.c4
-rw-r--r--libswscale/swscale.c103
-rw-r--r--libswscale/swscale_internal.h10
-rw-r--r--libswscale/swscale_template.c86
-rw-r--r--libswscale/yuv2rgb.c22
-rw-r--r--libswscale/yuv2rgb_template.c6
-rw-r--r--libvo/aclib.c79
-rw-r--r--libvo/aclib_template.c25
-rw-r--r--libvo/fastmemcpy.h4
-rw-r--r--libvo/osd.c86
-rw-r--r--libvo/osd_template.c42
-rw-r--r--libvo/vo_macosx.m13
-rw-r--r--loader/win32.c4
-rw-r--r--mencoder.c14
-rw-r--r--mp3lib/decod386.c4
-rw-r--r--mp3lib/sr1.c22
-rw-r--r--mplayer.c16
-rw-r--r--osdep/mplayer.rc2
-rw-r--r--vidix/dha.c4
74 files changed, 650 insertions, 555 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1
index d6fd64969a..785c4f8cf8 100644
--- a/DOCS/man/en/mplayer.1
+++ b/DOCS/man/en/mplayer.1
@@ -3560,7 +3560,8 @@ Mac OS X CoreVideo video output driver
.PD 0
.RSs
.IPs device_id=<number>
-Choose the display device to use in fullscreen.
+Choose the display device to use for fullscreen or set it to \-1 to
+always use the same screen the video window is on (default: \-1 \- auto).
.IPs shared_buffer
Write output to a shared memory buffer instead of displaying it and
try to open an existing NSConnection for communication with a GUI.
diff --git a/DOCS/man/fr/mplayer.1 b/DOCS/man/fr/mplayer.1
index cab727dd17..250f131ce3 100644
--- a/DOCS/man/fr/mplayer.1
+++ b/DOCS/man/fr/mplayer.1
@@ -1,4 +1,4 @@
-.\" synced with r28126
+.\" synced with r28279
.\" Encoding: iso-8859-1
.\" MPlayer (C) 2000-2009 MPlayer Team
.\" The English man page was/is done by Gabucino, Diego Biurrun, Jonas Jermann
@@ -33,7 +33,7 @@
.\" Titre
.\" --------------------------------------------------------------------------
.
-.TH MPlayer 1 "1er janvier 2008" "The MPlayer Project" "Le Lecteur Vidéo"
+.TH MPlayer 1 "15 janvier 2009" "The MPlayer Project" "Le Lecteur Vidéo"
.
.SH NAME
mplayer \- Lecteur vidéo
@@ -624,6 +624,7 @@ alang=en
profile-desc="profil pour les flux dvdnav://"
profile=protocol.dvd
mouse-movements=yes
+nocache=yes
[extension.flv]
profile-desc="profil pour les fichiers .flv"
@@ -1089,9 +1090,10 @@ Affiche le menu principal au lancement de MPlayer.
.TP
.B \-mouse\-movements
Permet MPlayer de recevoir des évènements souris envoyés
-par le pilote de sortie vidéo (seuls ceux dérivés de X11 sont gérés
-pour le moment).
+par le pilote de sortie vidéo.
Utilisé pour sélectioner les boutons des menus DVDs.
+Géré par par les VOs basés sur X11 (x11, xv, xvmc, etc.) ainsi que les VOs gl,
+gl2, direct3d et macosx.
.
.TP
.B \-noar
@@ -1228,6 +1230,15 @@ Pour jouer des flux MPEG-TS, MPlayer/\:MEncoder utilisera le premier programme
(si présent) avec le flux audio choisi.
.
.TP
+.B \-ausid <ID> (voir aussi \-alang)
+Sélectionne le canal du sous-flux audio.
+L'intervalle des valeurs valides est 0x55..0x75 et s'applique uniquement au
+démultiplexeur MPEG-TS natif (par celui de libavformat).
+Le type de format peut ne pas être correctement identifié puisque cette information n'est pas présente dans le flux, mais le démultiplexage des flux audios se fera correctement en présence de sous-flux multiples.
+MPlayer affiche tous les identifiants des sous-flux quand il est lancé avec
+l'option \-identify.
+.
+.TP
.B \-alang <code de langue[,code de langue,...]> (voir aussi \-aid)
Définit une liste de langues de pistes audio à jouer en priorité.
Chaque format de conteneur utilise des codes de pays différents.
@@ -2181,8 +2192,8 @@ sous-titres et ceux contenus dans les pistes Matroska.
Fonctionne avec \-embeddedfonts.
.br
.I NOTE\ :
-Quand fontconfig est activé à compilation, \-ass active \-fontconfig à moins
-que vous l'empêchiez explicitement avec l'option \-nofontconfig.
+Contrairement aux OSD normaux, libass utilise fontconfig par défaut.
+Pour désactiver ceci, utiliser l'option \-nofontconfig.
.
.TP
.B \-ass\-border\-color <valeur>
@@ -2367,8 +2378,8 @@ Avec Fontconfig, cette option détermine le nom de police fontconfig.
Active l'utilisation des polices gérées par fontconfig.
.br
.I NOTE\ :
-\-ass active cette option automatiquement à moins que vous l'empêchiez
-explicitement avec l'option \-nofontconfig.
+Par défaut fontconfig est utilisé pour afficher les sous-titres rendus par libass.
+Cette option active aussi le rendu de l'OSD avec fontconfig.
.
.TP
.B \-forcedsubsonly
@@ -2910,6 +2921,10 @@ Nom du client qui passé à JACK (par défaut\ : MPlayer [<PID>]).
.IPs (no)estimate
Estime le délai audio, supposé réduire les à-coups lors de la lecture
vidéo (par défaut\ : activé).
+.IPs (no)autostart
+Démarre le serveur jackd si nécessaire (par défaut\ : désactivé)
+Notez que cette option ne semble pas fiable et polluera la console avec plein
+de messages du serveur jackd.
.RE
.PD 1
.
@@ -3724,6 +3739,13 @@ pilote de sortie vidéo CoreVideo pour Mac OS X
.RSs
.IPs device_id=<numéro>
Choisir le moniteur à utiliser en plein-écran.
+.IPs shared_buffer
+Écrit la sortie dans un tampon partagé au lieu de l'afficher, et essaye
+d'établir une NSConnection avec une IHM existante.
+.IPs buffer_name=<name>
+Nom du tampon partagé créé avec shm_open pour effectuer la NSConnection avec
+une IHM (defaut\ : "mplayerosx").
+Définir l'option buffer_name active shared_buffer implicitement.
.RE
.PD 1
.
@@ -11705,7 +11727,7 @@ MPlayer était écrit à l'origine par Arpad Gereoffy.
Voir le fichier AUTHORS pour la liste de certains des nombreux autres
contributeurs.
.TP
-MPlayer est (C) 2000\-2008 The MPlayer Team
+MPlayer est (C) 2000\-2009 The MPlayer Team
.TP
Cette page de man est basée sur sa version en langue anglaise, écrite et
maintenue par Gabucino, Jonas Jermann et Diego Biurrun
diff --git a/configure b/configure
index e588342227..ad1780c72a 100755
--- a/configure
+++ b/configure
@@ -523,7 +523,7 @@ _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/ LIB[A-Z0-9_]*_DECODER//g' -e s/MPEG4AAC_DECODER// -e s/H264_VDPAU_DECODER// `
+_libavdecoders=` echo $_libavdecoders_all | sed -e 's/ LIB[A-Z0-9_]*_DECODER//g' -e s/MPEG4AAC_DECODER// -e s/H264_VDPAU_DECODER// -e s/MPEG_VDPAU_DECODER// -e s/MPEG1_VDPAU_DECODER//`
_libavencoders_all=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' ffmpeg/libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`
_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]'`
@@ -1690,7 +1690,7 @@ EOF
fi
-_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM SH PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
+_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM SH4 PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
_arch='X86 X86_32'
@@ -2049,10 +2049,10 @@ EOF
iproc='arm'
;;
- sh)
- _arch='SH'
- _target_arch='ARCH_SH = yes'
- iproc='sh'
+ sh|sh4)
+ _arch='SH4'
+ _target_arch='ARCH_SH4 = yes'
+ iproc='sh4'
;;
ppc|ppc64|powerpc|powerpc64)
@@ -2496,7 +2496,7 @@ if test $_yasm ; then
_have_yasm="yes"
echores "$_yasm"
else
- _def_yasm='#undef HAVE_YASM'
+ _def_yasm='#define HAVE_YASM 0'
fft_mmx="no"
_have_yasm="no"
echores "no"
@@ -2617,7 +2617,7 @@ EOF
echores "$_iwmmxt"
fi
-_cpuexts_all='ALTIVEC BSWAP MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP IWMMXT MLIB MMI SH4 VIS MVI'
+_cpuexts_all='ALTIVEC BSWAP MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP IWMMXT MMI VIS MVI'
test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts"
test "$_mmx" = yes && _cpuexts="MMX $_cpuexts"
test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts"
@@ -5541,6 +5541,7 @@ fi
echores "$_sunaudio"
+def_mlib='#define CONFIG_MLIB 0'
if sunos; then
echocheck "Sun mediaLib"
if test "$_mlib" = auto ; then
@@ -5549,9 +5550,8 @@ if test "$_mlib" = auto ; then
#include <mlib.h>
int main(void) { mlib_VideoColorYUV2ABGR420(0,0,0,0,0,0,0,0,0); return 0; }
EOF
- cc_check -lmlib && _mlib=yes
+ cc_check -lmlib && _mlib=yes && def_mlib='#define CONFIG_MLIB 1'
fi
-test "$_mlib" = yes && _cpuexts="MLIB $_cpuexts"
echores "$_mlib"
fi #if sunos
@@ -6240,10 +6240,10 @@ if test "$_mp3lib" = auto ; then
fi
if test "$_mp3lib" = yes ; then
_def_mp3lib='#define CONFIG_MP3LIB 1'
- _codecmodules="mp3lib $_codecmodules"
+ _codecmodules="mp3lib(internal) $_codecmodules"
else
_def_mp3lib='#undef CONFIG_MP3LIB'
- _nocodecmodules="mp3lib $_nocodecmodules"
+ _nocodecmodules="mp3lib(internal) $_nocodecmodules"
fi
echores "$_mp3lib"
@@ -6288,10 +6288,10 @@ if test "$_libmpeg2" = auto ; then
fi
if test "$_libmpeg2" = yes ; then
_def_libmpeg2='#define CONFIG_LIBMPEG2 1'
- _codecmodules="libmpeg2 $_codecmodules"
+ _codecmodules="libmpeg2(internal) $_codecmodules"
else
_def_libmpeg2='#undef CONFIG_LIBMPEG2'
- _nocodecmodules="libmpeg2 $_nocodecmodules"
+ _nocodecmodules="libmpeg2(internal) $_nocodecmodules"
fi
echores "$_libmpeg2"
@@ -6422,7 +6422,11 @@ fi
if test "$_faad" = yes ; then
_def_faad='#define CONFIG_FAAD 1'
- _codecmodules="faad2 $_codecmodules"
+ if test "$_faad_internal" = yes ; then
+ _codecmodules="faad2(internal) $_codecmodules"
+ else
+ _codecmodules="faad2 $_codecmodules"
+ fi
else
_faad=no
_nocodecmodules="faad2 $_nocodecmodules"
@@ -6641,7 +6645,7 @@ elif test "$_libavutil_so" = auto ; then
_libavutil_so=no
cat > $TMPC << EOF
#include <libavutil/common.h>
-int main(void) { ff_gcd(1,1); return 0; }
+int main(void) { av_gcd(1,1); return 0; }
EOF
if $_pkg_config --exists libavutil ; then
_inc_libavutil=`$_pkg_config --cflags libavutil`
@@ -6704,7 +6708,7 @@ test "$_libavcodec_so" = yes && _def_libavcodec_so='#define CONFIG_LIBAVCODEC_SO
test "$_libavcodec_mpegaudio_hp" = yes \
&& _def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1'
if test "$_libavcodec_a" = yes ; then
- _codecmodules="libavcodec $_codecmodules"
+ _codecmodules="libavcodec(internal) $_codecmodules"
elif test "$_libavcodec_so" = yes ; then
_codecmodules="libavcodec.so $_codecmodules"
else
@@ -7824,11 +7828,12 @@ if test "$_dvdnav" = yes ; then
_def_dvdnav='#define CONFIG_DVDNAV 1'
if test "$dvdnav_internal" = yes ; then
_inc_extra="$_inc_extra -Ilibdvdnav"
+ _inputmodules="dvdnav(internal) $_inputmodules"
else
_inc_extra="$_inc_extra `$_dvdnavconfig --cflags`"
_ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`"
+ _inputmodules="dvdnav $_inputmodules"
fi
- _inputmodules="dvdnav $_inputmodules"
else
_def_dvdnav='#undef CONFIG_DVDNAV'
_noinputmodules="dvdnav $_noinputmodules"
@@ -8205,9 +8210,8 @@ test -z "$_nprefix" && _nprefix='CONFIG'
for part in $1; do
if ` echo $2 | grep -q -E "(^| )$part($| )" `; then
echo "#define ${_nprefix}_$part 1"
- echo "#define ENABLE_$part 1"
else
- echo "#define ENABLE_$part 0"
+ echo "#define ${_nprefix}_$part 0"
fi
done
}
@@ -8587,29 +8591,21 @@ $_def_libswscale_so
$_def_dcbzl
$def_fast_64bit
$_def_fast_unaligned
+$def_mlib
$_def_mkstemp
$_def_pthreads
$_def_threads
-#ifdef HAVE_THREADS
-#define ENABLE_THREADS 1
-#else
-#define ENABLE_THREADS 0
-#endif
$_def_yasm
#define CONFIG_GPL 1
-#define ENABLE_SMALL 0
-#define ENABLE_GRAY 0
+#define CONFIG_SMALL 0
+#define CONFIG_GRAY 0
/* Some FFmpeg codecs depend on these. Enable them unconditionally for now. */
#define CONFIG_AANDCT 1
-#define ENABLE_AANDCT 1
#define CONFIG_FFT 1
-#define ENABLE_FFT 1
#define CONFIG_GOLOMB 1
-#define ENABLE_GOLOMB 1
#define CONFIG_MDCT 1
-#define ENABLE_MDCT 1
/* Use these registers in FFmpeg x86 inline asm. No proper detection yet. */
#define HAVE_EBX_AVAILABLE 1
@@ -8618,12 +8614,8 @@ $_def_yasm
#endif
#define CONFIG_DECODERS 1
-#define ENABLE_DECODERS 1
#define CONFIG_ENCODERS 1
-#define ENABLE_ENCODERS 1
-
#define CONFIG_DEMUXERS 1
-#define ENABLE_DEMUXERS 1
$_def_muxers
diff --git a/cpudetect.c b/cpudetect.c
index 3860cc9a17..9756dfb454 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -9,7 +9,7 @@ CpuCaps gCpuCaps;
#endif
#include <stdlib.h>
-#ifdef ARCH_X86
+#if ARCH_X86
#include <stdio.h>
#include <string.h>
@@ -57,7 +57,7 @@ static int has_cpuid(void)
long a, c;
// code from libavcodec:
-#ifdef ARCH_X86_64
+#if ARCH_X86_64
#define PUSHF "pushfq\n\t"
#define POPF "popfq\n\t"
#else
@@ -212,27 +212,27 @@ void GetCpuCaps( CpuCaps *caps)
// caps->hasMMX = 0;
#ifndef RUNTIME_CPUDETECT
-#ifndef HAVE_MMX
+#if !HAVE_MMX
if(caps->hasMMX) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX supported but disabled\n");
caps->hasMMX=0;
#endif
-#ifndef HAVE_MMX2
+#if !HAVE_MMX2
if(caps->hasMMX2) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX2 supported but disabled\n");
caps->hasMMX2=0;
#endif
-#ifndef HAVE_SSE
+#if !HAVE_SSE
if(caps->hasSSE) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"SSE supported but disabled\n");
caps->hasSSE=0;
#endif
-#ifndef HAVE_SSE2
+#if !HAVE_SSE2
if(caps->hasSSE2) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"SSE2 supported but disabled\n");
caps->hasSSE2=0;
#endif
-#ifndef HAVE_3DNOW
+#if !HAVE_3DNOW
if(caps->has3DNow) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNow supported but disabled\n");
caps->has3DNow=0;
#endif
-#ifndef HAVE_3DNOWEX
+#if !HAVE_3DNOWEX
if(caps->has3DNowExt) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNowExt supported but disabled\n");
caps->has3DNowExt=0;
#endif
@@ -304,7 +304,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
#undef CPUID_STEPPING
-#if defined(__linux__) && defined(_POSIX_SOURCE) && !defined(ARCH_X86_64)
+#if defined(__linux__) && defined(_POSIX_SOURCE) && !ARCH_X86_64
static void sigill_handler_sse( int signal, struct sigcontext sc )
{
mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " );
@@ -371,7 +371,7 @@ ULONG _System os2_sig_handler_sse( PEXCEPTIONREPORTRECORD p1,
static void check_os_katmai_support( void )
{
-#ifdef ARCH_X86_64
+#if ARCH_X86_64
gCpuCaps.hasSSE=1;
gCpuCaps.hasSSE2=1;
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__APPLE__)
@@ -511,7 +511,7 @@ void GetCpuCaps( CpuCaps *caps)
caps->hasSSE4a=0;
caps->isX86=0;
caps->hasAltiVec = 0;
-#ifdef HAVE_ALTIVEC
+#if HAVE_ALTIVEC
#ifdef __APPLE__
/*
rip-off from ffmpeg altivec detection code.
@@ -558,47 +558,47 @@ void GetCpuCaps( CpuCaps *caps)
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
#endif /* HAVE_ALTIVEC */
-#ifdef ARCH_IA64
+#if ARCH_IA64
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Intel Itanium\n");
#endif
-#ifdef ARCH_SPARC
+#if ARCH_SPARC
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Sun Sparc\n");
#endif
-#ifdef ARCH_ARMV4L
+#if ARCH_ARM
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: ARM\n");
#endif
-#ifdef ARCH_PPC
+#if ARCH_PPC
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: PowerPC\n");
#endif
-#ifdef ARCH_ALPHA
+#if ARCH_ALPHA
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Digital Alpha\n");
#endif
-#ifdef ARCH_SGI_MIPS
+#if ARCH_SGI_MIPS
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: SGI MIPS\n");
#endif
-#ifdef ARCH_PA_RISC
+#if ARCH_PA_RISC
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Hewlett-Packard PA-RISC\n");
#endif
-#ifdef ARCH_S390
+#if ARCH_S390
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390\n");
#endif
-#ifdef ARCH_S390X
+#if ARCH_S390X
mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390X\n");
#endif
-#ifdef ARCH_VAX
+#if ARCH_VAX
mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Digital VAX\n" );
#endif
-#ifdef ARCH_XTENSA
+#if ARCH_XTENSA
mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Tensilica Xtensa\n" );
#endif
}
diff --git a/cpudetect.h b/cpudetect.h
index a98f97f0e4..3f91f05d1c 100644
--- a/cpudetect.h
+++ b/cpudetect.h
@@ -6,7 +6,7 @@
#define CPUTYPE_I586 5
#define CPUTYPE_I686 6
-#ifdef ARCH_X86_64
+#if ARCH_X86_64
# define REGa rax
# define REGb rbx
# define REGBP rbp
diff --git a/etc/codecs.conf b/etc/codecs.conf
index 5f3d13dff2..0a1371148a 100644
--- a/etc/codecs.conf
+++ b/etc/codecs.conf
@@ -38,6 +38,7 @@ videocodec ffmimic
info "FFmpeg Mimic video"
status working
fourcc ML20
+ fourcc LM20 ; mimic in avi
out I420
driver ffmpeg
dll "mimic"
@@ -1717,6 +1718,14 @@ videocodec psiv
dll "psiv.dll"
out BGR32,BGR24 query,flip
+videocodec midivid3
+ info "www.midivid.com/codec/mv3codec.html"
+ status working
+ fourcc MV30
+ driver vfw
+ dll "MV3.dll"
+ out BGR24,BGR16
+
videocodec nsvideo
info "Power VideoWorks video"
status working
@@ -2126,6 +2135,14 @@ videocodec tridvfw
dll "TRICDC32.DRV"
out BGR24 flip
+videocodec vdtzvfw
+ info "Telegeny VDTZ"
+ status working
+ fourcc VDTZ
+ driver vfw
+ dll "VTZ32.DLL"
+ out BGR24 flip
+
videocodec vivd2
info "SoftMedia ViVD V2 codec VfW"
status working
diff --git a/liba52/a52_internal.h b/liba52/a52_internal.h
index 3854c16707..1f6d205931 100644
--- a/liba52/a52_internal.h
+++ b/liba52/a52_internal.h
@@ -107,7 +107,7 @@ struct a52_state_s {
#define DELTA_BIT_NONE (2)
#define DELTA_BIT_RESERVED (3)
-#ifdef ARCH_X86_64
+#if ARCH_X86_64
# define REG_a "rax"
# define REG_d "rdx"
# define REG_S "rsi"
diff --git a/liba52/bitstream.h b/liba52/bitstream.h
index 63b1823b17..fcf2e47390 100644
--- a/liba52/bitstream.h
+++ b/liba52/bitstream.h
@@ -37,7 +37,7 @@
#define ALT_BITSTREAM_READER