Mmmmh an endianness bug ?

This commit is contained in:
Christophe Massiot 2000-12-11 14:58:30 +00:00
parent 4dc9ef7129
commit b593a03bb4
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@
#include <stdlib.h> /* malloc(), free() */
#include <sys/types.h> /* on BSD, uio.h needs types.h */
#include <sys/uio.h> /* "input.h" */
#include <netinet/in.h> /* ntohl */
#include "threads.h"
#include "common.h"
@ -206,7 +207,7 @@ static void RunThread (adec_thread_t * p_adec)
do
{
adec_byte_stream_next ( p_byte_stream );
} while ( !((*((u32 *)p_adec->p_data->p_payload_start) & 0xFFFFFF00) == 0x100) && (!p_adec->b_die)
} while ( !((U32_AT((u32 *)p_adec->p_data->p_payload_start) & 0xFFFFFF00) == 0x100) && (!p_adec->b_die)
&& (!p_adec->b_error) );
if( p_adec->b_die || p_adec->b_error )