]> git.sesse.net Git - vlc/commitdiff
* modules/codec/mpeg_video/parser.c: add_module() for "mpeg-motion" wasn't using
authorGildas Bazin <gbazin@videolan.org>
Mon, 28 Oct 2002 22:23:23 +0000 (22:23 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 28 Oct 2002 22:23:23 +0000 (22:23 +0000)
   the right capability.
* modules/codec/ffmpeg/ffmpeg.c: fixed typo (re-enabled default case in a
   switch).
* modules/codec/a52.c: fixed the AOUT_DOLBY detection.

modules/codec/a52.c
modules/codec/ffmpeg/ffmpeg.c
modules/codec/mpeg_video/parser.c

index 67077117bf2ae9846a00c6b8b5559a022fbfb8cd..30d36289e406edfa963771d91746ab0f0dd98139 100644 (file)
@@ -2,7 +2,7 @@
  * a52.c: A/52 basic parser
  *****************************************************************************
  * Copyright (C) 2001-2002 VideoLAN
- * $Id: a52.c,v 1.16 2002/10/27 16:58:14 gbazin Exp $
+ * $Id: a52.c,v 1.17 2002/10/28 22:23:23 gbazin Exp $
  *
  * Authors: Stéphane Borel <stef@via.ecp.fr>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -291,7 +291,7 @@ int SyncInfo( const byte_t * p_buf, int * pi_channels, int * pi_sample_rate,
 
     /* acmod, dsurmod and lfeon */
     acmod = p_buf[6] >> 5;
-    if ( p_buf[6] & 0xf8 )
+    if ( (p_buf[6] & 0xf8) == 0x50 )
     {
         *pi_channels = AOUT_CHAN_DOLBY;
     }
index 5ea47cbe50ac4a979b7e596a0bb2c25078ab7536..63005fe000887a4cf4bf85b83e10f9cd9ca6e167 100644 (file)
@@ -2,7 +2,7 @@
  * ffmpeg.c: video decoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ffmpeg.c,v 1.12 2002/10/28 06:26:11 fenrir Exp $
+ * $Id: ffmpeg.c,v 1.13 2002/10/28 22:23:23 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -493,15 +493,13 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t i_fourcc,
             i_codec = CODEC_ID_WMAV2;
             psz_name ="Windows Media Audio 2";
             break;
-
+#endif
 
         default:
             i_cat = UNKNOWN_ES;
             i_codec = CODEC_ID_NONE;
             psz_name = NULL;
             break;
-#endif
-
     }
 
     if( i_codec != CODEC_ID_NONE )
index 34825178861fe11221e67ca0f9dcd6aed9aec42a..ed53cc0daae2f42e292d07139e9af7b1fed7f44e 100644 (file)
@@ -2,7 +2,7 @@
  * video_parser.c : video parser thread
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: parser.c,v 1.5 2002/10/27 16:58:13 gbazin Exp $
+ * $Id: parser.c,v 1.6 2002/10/28 22:23:23 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Samuel Hocevar <sam@via.ecp.fr>
@@ -87,8 +87,8 @@ vlc_module_begin();
     add_category_hint( N_("Miscellaneous"), NULL );
     add_module  ( "mpeg-idct", "idct", NULL, NULL,
                   VDEC_IDCT_TEXT, VDEC_IDCT_LONGTEXT );
-    add_module  ( "mpeg-motion", "motion", NULL, NULL,
-                  VDEC_MOTION_TEXT, VDEC_IDCT_LONGTEXT );
+    add_module  ( "mpeg-motion", "motion compensation", NULL, NULL,
+                  VDEC_MOTION_TEXT, VDEC_MOTION_LONGTEXT );
     add_integer ( "vdec-smp", 0, NULL, VDEC_SMP_TEXT, VDEC_SMP_LONGTEXT );
     add_string  ( "vpar-synchro", NULL, NULL, VPAR_SYNCHRO_TEXT,
                   VPAR_SYNCHRO_LONGTEXT );