]> git.sesse.net Git - vlc/commitdiff
Fixed (again) a rendering bug on big endian systems. :-p
authorChristophe Massiot <massiot@videolan.org>
Mon, 16 Dec 2002 23:25:23 +0000 (23:25 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 16 Dec 2002 23:25:23 +0000 (23:25 +0000)
modules/codec/spudec/parse.c

index db789d5756f07a306654b162bb4cd99087786451..2814b7bef0aff1ea2f549805004544cbca52f175 100644 (file)
@@ -2,7 +2,7 @@
  * parse.c: SPU parser
  *****************************************************************************
  * Copyright (C) 2000-2001 VideoLAN
- * $Id: parse.c,v 1.6 2002/12/06 16:34:05 sam Exp $
+ * $Id: parse.c,v 1.7 2002/12/16 23:25:23 massiot Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -316,15 +316,9 @@ static int ParseControlSeq( spudec_thread_t *p_spudec,
                                   GetBits(&p_spudec->bit_stream, 4) ];
 
                     /* FIXME: this job should be done sooner */
-#ifndef WORDS_BIGENDIAN
                     p_spu->p_sys->pi_yuv[3-i][0] = (i_color>>16) & 0xff;
                     p_spu->p_sys->pi_yuv[3-i][1] = (i_color>>0) & 0xff;
                     p_spu->p_sys->pi_yuv[3-i][2] = (i_color>>8) & 0xff;
-#else
-                    p_spu->p_sys->pi_yuv[3-i][0] = (i_color>>8) & 0xff;
-                    p_spu->p_sys->pi_yuv[3-i][1] = (i_color>>24) & 0xff;
-                    p_spu->p_sys->pi_yuv[3-i][2] = (i_color>>16) & 0xff;
-#endif
                 }
             }
             else