]> git.sesse.net Git - vlc/commitdiff
Compare using the right data types
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 20 May 2006 11:40:15 +0000 (11:40 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 20 May 2006 11:40:15 +0000 (11:40 +0000)
modules/demux/ogg.c

index 5e42ad572dd1bb15e8ef0e12d56501a39ace65bb..3c55ff933c6d12241e8998c9cb1fd18458caa1dd 100644 (file)
@@ -1360,12 +1360,12 @@ static void Ogg_ReadAnnodexHeader( vlc_object_t *p_this,
         /* we are guaranteed that the first header field will be
          * the content-type (by the Annodex standard) */
         content_type_string[0] = '\0';
-        if( !strncasecmp( &p_oggpacket->packet[28], "Content-Type: ", 14 ) )
+        if( !strncasecmp( (char*)(&p_oggpacket->packet[28]), "Content-Type: ", 14 ) )
         {
             uint8_t *p = memchr( &p_oggpacket->packet[42], '\r',
                                  p_oggpacket->bytes - 1 );
             if( p && p[0] == '\r' && p[1] == '\n' )
-                sscanf( &p_oggpacket->packet[42], "%1024s\r\n",
+                sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n",
                         content_type_string );
         }