From: Christophe Massiot Date: Mon, 11 Dec 2000 15:06:32 +0000 (+0000) Subject: Another attempt for the same bug... X-Git-Tag: 0.2.70~331 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fd5a24a4b3af1616c895929dd5dfe870ac42bf9a;p=vlc Another attempt for the same bug... --- diff --git a/src/audio_decoder/audio_decoder_thread.c b/src/audio_decoder/audio_decoder_thread.c index a21b019dbc..2c1f1c7dbf 100644 --- a/src/audio_decoder/audio_decoder_thread.c +++ b/src/audio_decoder/audio_decoder_thread.c @@ -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 ) {