Commit 49af7dbf authored by Jean-Paul Saman's avatar Jean-Paul Saman

Compare using the right data types

parent 5b8844d0
......@@ -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 );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment