[Ffmpeg-cvslog] r8822 - trunk/libavutil/bswap.h

benoit subversion
Thu Apr 26 10:15:39 CEST 2007


Author: benoit
Date: Thu Apr 26 10:15:39 2007
New Revision: 8822

Log:

make 2 functions "return x;" to simplify next patch
patch by Ramiro Polla ramiro lisha ufsc br



Modified:
   trunk/libavutil/bswap.h

Modified: trunk/libavutil/bswap.h
==============================================================================
--- trunk/libavutil/bswap.h	(original)
+++ trunk/libavutil/bswap.h	Thu Apr 26 10:15:39 2007
@@ -111,7 +111,8 @@ static inline uint64_t bswap_64(uint64_t
 #else
 
 static av_always_inline uint16_t bswap_16(uint16_t x){
-    return (x>>8) | (x<<8);
+    x= (x>>8) | (x<<8);
+    return x;
 }
 
 #ifdef ARCH_ARM
@@ -140,7 +141,8 @@ static av_always_inline uint32_t bswap_3
 #else
 static av_always_inline uint32_t bswap_32(uint32_t x){
     x= ((x<<8)&0xFF00FF00) | ((x>>8)&0x00FF00FF);
-    return (x>>16) | (x<<16);
+    x= (x>>16) | (x<<16);
+    return x;
 }
 #endif
 




More information about the ffmpeg-cvslog mailing list