[vorbis-dev] ogg123 oss plugin plays garbage

Timothy J. Wood tjw at omnigroup.com
Sun Jan 28 19:54:01 PST 2001



  It should be '==' instead of '='.   The current code results in an assignment instead of a comparison.

-tim

On Sunday, January 28, 2001, at 07:42 PM, Chris Cheney wrote:

> I determined what was the cause of the noise, but I am not sure how to fix 
> it properly. 
>  
> static int _is_big_endian(void) 
> { 
>         uint_16 pattern = 0xbabe; 
>         unsigned char *bytewise = (unsigned char *)&pattern; 
>  
> /*      if (bytewise[0] = 0xba) return 1; */ 
>         return 0; 
> } 
>  
> I just commented out that line above and it fixed my problem.  I am running 
> on an AMD Duron (x86 platform). 
>  
> Thanks, 
>  

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list