Changeset 49af7dbfc05bb99f154b3213bf46871d15b90bbd

Show
Ignore:
Timestamp:
20/05/06 13:40:15 (3 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1148125215 +0000
git-parent:

[5b8844d090c4048849aa7ea350214032c32bbfe1]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1148125215 +0000
Message:

Compare using the right data types

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/ogg.c

    r0d2c5a8 r49af7db  
    13611361         * the content-type (by the Annodex standard) */ 
    13621362        content_type_string[0] = '\0'; 
    1363         if( !strncasecmp( &p_oggpacket->packet[28], "Content-Type: ", 14 ) ) 
     1363        if( !strncasecmp( (char*)(&p_oggpacket->packet[28]), "Content-Type: ", 14 ) ) 
    13641364        { 
    13651365            uint8_t *p = memchr( &p_oggpacket->packet[42], '\r', 
    13661366                                 p_oggpacket->bytes - 1 ); 
    13671367            if( p && p[0] == '\r' && p[1] == '\n' ) 
    1368                 sscanf( &p_oggpacket->packet[42], "%1024s\r\n", 
     1368                sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n", 
    13691369                        content_type_string ); 
    13701370        }