]> git.sesse.net Git - vlc/commitdiff
Another attempt for the same bug...
authorChristophe Massiot <massiot@videolan.org>
Mon, 11 Dec 2000 15:06:32 +0000 (15:06 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 11 Dec 2000 15:06:32 +0000 (15:06 +0000)
src/audio_decoder/audio_decoder_thread.c

index a21b019dbc2b54d2d6b687624d5368b833452b70..2c1f1c7dbf9604a64952036817506efeaf0d0121 100644 (file)
@@ -207,8 +207,11 @@ static void RunThread (adec_thread_t * p_adec)
             do 
             {
                 adec_byte_stream_next ( p_byte_stream );
-            } while ( !((U32_AT((u32 *)p_adec->p_data->p_payload_start) & 0xFFFFFF00) == 0x100) && (!p_adec->b_die)
-                        && (!p_adec->b_error) );
+            } while ( !(!*p_adec->p_data->p_payload_start
+                         && !p_adec->p_data->p_payload_start[1]
+                         && p_adec->p_data->p_payload_start[2] == 1)
+                       && (!p_adec->b_die)
+                       && (!p_adec->b_error) );
 
             if( p_adec->b_die || p_adec->b_error )
             {