]> git.sesse.net Git - vlc/blobdiff - modules/demux/util/id3.c
* include/vlc_common.h:
[vlc] / modules / demux / util / id3.c
index 9d52fe1cd08bb11de0a6111749b64c0401d610b5..4b7e1cbdb58444795a1b4594aaa7a33644792a65 100644 (file)
@@ -2,15 +2,15 @@
  * id3.c: simple id3 tag skipper
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: id3.c,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
+ * $Id: id3.c,v 1.5 2003/10/25 00:49:14 sam Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -37,8 +37,6 @@
  *****************************************************************************/
 static int  SkipID3Tag ( vlc_object_t * );
 
-/* TODO: support MPEG-2.5, not difficult, but I need somes samples... */
-
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
@@ -48,24 +46,15 @@ vlc_module_begin();
     set_callbacks( SkipID3Tag, NULL );
 vlc_module_end();
 
-/*****************************************************************************
- * Definitions of structures  and functions used by this plugins 
- *****************************************************************************/
-
-
 /****************************************************************************
- * ParseID3Tag : check if an ID3 header is present and parse and skip it
- ****************************************************************************
- *
- * Author : Sigmund Augdal 
- * 
-' ****************************************************************************/
+ * SkipID3Tag : check if an ID3 tag is present, and skip it if it is
+ ****************************************************************************/
 static int SkipID3Tag( vlc_object_t *p_this )
 {
     input_thread_t *p_input;
-    u *p_peek;
+    uint8_t *p_peek;
     int i_size;
-    u version, revision;
+    uint8_t version, revision;
     int b_footer;
 
     if ( p_this->i_object_type != VLC_OBJECT_INPUT )
@@ -75,7 +64,7 @@ static int SkipID3Tag( vlc_object_t *p_this )
     p_input = (input_thread_t *)p_this;
 
     msg_Dbg( p_input, "Checking for ID3 tag" );
-    /* get 10 byte id3 header */    
+    /* get 10 byte id3 header */
     if( input_Peek( p_input, &p_peek, 10 ) < 10 )
     {
         msg_Err( p_input, "cannot peek()" );
@@ -86,7 +75,7 @@ static int SkipID3Tag( vlc_object_t *p_this )
     {
         return( VLC_SUCCESS );
     }
-    
+
     version = p_peek[3];  /* These may become usfull later, */
     revision = p_peek[4]; /* but we ignore them for now */
     b_footer = p_peek[5] & 0x10;