]> git.sesse.net Git - vlc/blobdiff - modules/audio_filter/converter/a52tospdif.c
Improvements to preferences
[vlc] / modules / audio_filter / converter / a52tospdif.c
index 4e80526924ef022cf96ff57d04828698c04ef490..a1a676698891ccf4e1e8da7b7ed88e8fb43d5d1b 100644 (file)
@@ -2,7 +2,7 @@
  * a52tospdif.c : encapsulates A/52 frames into S/PDIF packets
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: a52tospdif.c,v 1.15 2002/11/28 23:24:14 massiot Exp $
+ * $Id$
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -48,6 +48,8 @@ static void DoWork    ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
  * Module descriptor
  *****************************************************************************/
 vlc_module_begin();
+    set_category( CAT_AUDIO );
+    set_subcategory( SUBCAT_AUDIO_MISC );
     set_description( _("audio filter for A/52->S/PDIF encapsulation") );
     set_capability( "audio filter", 10 );
     set_callbacks( Create, NULL );
@@ -85,15 +87,15 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
      * endian.
      */
 
-    static const u8 p_sync[6] = { 0x72, 0xF8, 0x1F, 0x4E, 0x01, 0x00 };
+    static const uint8_t p_sync[6] = { 0x72, 0xF8, 0x1F, 0x4E, 0x01, 0x00 };
 #ifndef HAVE_SWAB
-    u16 i;
+    byte_t * p_tmp;
+    uint16_t i;
 #endif
-    u16 i_length = p_in_buf->i_nb_bytes;
-    u8 * pi_length;
+    uint16_t i_length = p_in_buf->i_nb_bytes;
+    uint8_t * pi_length;
     byte_t * p_in = p_in_buf->p_buffer;
     byte_t * p_out = p_out_buf->p_buffer;
-    byte_t * p_tmp;
 
     /* Copy the S/PDIF headers. */
     memcpy( p_out, p_sync, 6 );