[FFmpeg-cvslog] r16364 - trunk/libavcodec/bitstream.h

mru subversion
Sun Dec 28 00:12:00 CET 2008


Author: mru
Date: Sun Dec 28 00:12:00 2008
New Revision: 16364

Log:
Replace UNALIGNED_STORES_ARE_BAD with !HAVE_FAST_UNALIGNED

Modified:
   trunk/libavcodec/bitstream.h

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	Sat Dec 27 18:34:00 2008	(r16363)
+++ trunk/libavcodec/bitstream.h	Sun Dec 28 00:12:00 2008	(r16364)
@@ -179,10 +179,6 @@ typedef struct RL_VLC_ELEM {
     uint8_t run;
 } RL_VLC_ELEM;
 
-#if defined(ARCH_SPARC) || defined(ARCH_ARM) || defined(ARCH_MIPS) || defined(ARCH_BFIN)
-#define UNALIGNED_STORES_ARE_BAD
-#endif
-
 #ifndef ALT_BITSTREAM_WRITER
 static inline void put_bits(PutBitContext *s, int n, unsigned int value)
 {
@@ -200,7 +196,7 @@ static inline void put_bits(PutBitContex
 #ifdef BITSTREAM_WRITER_LE
     bit_buf |= value << (32 - bit_left);
     if (n >= bit_left) {
-#ifdef UNALIGNED_STORES_ARE_BAD
+#ifndef HAVE_FAST_UNALIGNED
         if (3 & (intptr_t) s->buf_ptr) {
             s->buf_ptr[0] = bit_buf      ;
             s->buf_ptr[1] = bit_buf >>  8;
@@ -221,7 +217,7 @@ static inline void put_bits(PutBitContex
     } else {
         bit_buf<<=bit_left;
         bit_buf |= value >> (n - bit_left);
-#ifdef UNALIGNED_STORES_ARE_BAD
+#ifndef HAVE_FAST_UNALIGNED
         if (3 & (intptr_t) s->buf_ptr) {
             s->buf_ptr[0] = bit_buf >> 24;
             s->buf_ptr[1] = bit_buf >> 16;




More information about the ffmpeg-cvslog mailing list