]> git.sesse.net Git - vlc/blobdiff - modules/demux/au.c
Removed unneeded macros.
[vlc] / modules / demux / au.c
index 87fb9e42379e962064aa7139a75b9d16fa9b66c6..08f7e986417f0d84d2dd2f418d98a09742dcc6b2 100644 (file)
@@ -109,12 +109,11 @@ static int Open( vlc_object_t *p_this )
     int          i_cat;
     int          i_samples, i_modulo;
 
-    CHECK_PEEK( p_peek, 4 );
+    if( stream_Peek( p_demux->s , &p_peek, 4 ) < 4 )
+        return VLC_EGENERIC;
 
     if( memcmp( p_peek, ".snd", 4 ) )
-    {
         return VLC_EGENERIC;
-    }
 
     /* skip signature */
     stream_Read( p_demux->s, NULL, 4 );   /* cannot fail */