# HG changeset patch # User Ryan C. Gordon # Date 1013416223 0 # Node ID 7c4f6ee02cd0a06c489fc8369676ac40f9e066a3 # Parent c6b7f7999a0ecf95c682d942d81d7e33276b8007 Changed magic number to be bigendian. diff -r c6b7f7999a0e -r 7c4f6ee02cd0 decoders/au.c --- a/decoders/au.c Mon Feb 11 08:11:09 2002 +0000 +++ b/decoders/au.c Mon Feb 11 08:30:23 2002 +0000 @@ -124,7 +124,7 @@ }; -#define AU_MAGIC 0x646E732E /* ".snd", in ASCII */ +#define AU_MAGIC 0x2E736E64 /* ".snd", in ASCII (bigendian number) */ static int AU_open(Sound_Sample *sample, const char *ext) { @@ -145,11 +145,7 @@ return(0); } /* if */ - /* - * !!! FIXME: For correctness, we should calculate this as a bigendian - * !!! FIXME: number, which means swapping AU_MAGIC around. - */ - if (SDL_SwapLE32(hdr.magic) == AU_MAGIC) + if (SDL_SwapBE32(hdr.magic) == AU_MAGIC) { /* valid magic */ dec->encoding = SDL_SwapBE32(hdr.encoding);