]> git.sesse.net Git - vlc/blobdiff - modules/demux/dts.c
Libtool: kludge^H^H^H^H^H^Hfix make (|un)install within modules/subdir/subdir
[vlc] / modules / demux / dts.c
index f7a22619a042f72c7fc6e3fdca541bc4e44c18f6..01206f5b251d5561d4480d8d27ebcb897b46987f 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * dts.c : raw DTS stream input module for vlc
  *****************************************************************************
- * Copyright (C) 2001 VideoLAN (Centrale Réseaux) and its contributors
+ * Copyright (C) 2001 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 /*****************************************************************************
@@ -78,13 +78,13 @@ static int Open( vlc_object_t * p_this )
 
     /* Check if we are dealing with a WAV file */
     if( stream_Peek( p_demux->s, &p_peek, 20 ) == 20 &&
-        !strncmp( p_peek, "RIFF", 4 ) && !strncmp( &p_peek[8], "WAVE", 4 ) )
+        !memcmp( p_peek, "RIFF", 4 ) && !memcmp( &p_peek[8], "WAVE", 4 ) )
     {
         int i_size;
 
         /* Find the wave format header */
         i_peek = 20;
-        while( strncmp( p_peek + i_peek - 8, "fmt ", 4 ) )
+        while( memcmp( p_peek + i_peek - 8, "fmt ", 4 ) )
         {
             i_size = GetDWLE( p_peek + i_peek - 4 );
             if( i_size + i_peek > DTS_PROBE_SIZE ) return VLC_EGENERIC;
@@ -110,7 +110,7 @@ static int Open( vlc_object_t * p_this )
             return VLC_EGENERIC;
 
         /* Skip the wave header */
-        while( strncmp( p_peek + i_peek - 8, "data", 4 ) )
+        while( memcmp( p_peek + i_peek - 8, "data", 4 ) )
         {
             i_size = GetDWLE( p_peek + i_peek - 4 );
             if( i_size + i_peek > DTS_PROBE_SIZE ) return VLC_EGENERIC;