X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fa52.c;h=5126516b5d3c9220f3cfa4b3744dbca5e626c016;hb=a93fc49af1a5ba31fdb54f7841ba3210760221ec;hp=9d7c8af1214e5cda3b2ae3e26b04bcbe831460f3;hpb=fe087a38282e93addb25fa9598393e40ea233b09;p=vlc diff --git a/modules/demux/a52.c b/modules/demux/a52.c index 9d7c8af121..5126516b5d 100644 --- a/modules/demux/a52.c +++ b/modules/demux/a52.c @@ -81,18 +81,18 @@ static int Open( vlc_object_t * p_this ) demux_sys_t *p_sys; byte_t *p_peek; int i_peek = 0; - vlc_bool_t b_big_endian; + vlc_bool_t b_big_endian = 0; /* Arbitrary initialisation */ /* Check if we are dealing with a WAV file */ if( stream_Peek( p_demux->s, &p_peek, 12 ) == 12 && - !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; /* Skip the wave header */ i_peek = 12 + 8; while( stream_Peek( p_demux->s, &p_peek, i_peek ) == i_peek && - strncmp( p_peek + i_peek - 8, "data", 4 ) ) + memcmp( p_peek + i_peek - 8, "data", 4 ) ) { i_peek += GetDWLE( p_peek + i_peek - 4 ) + 8; }