changeset 329:ecb4776617e1 libavutil

make 2 functions "return x;" to simplify next patch patch by Ramiro Polla ramiro lisha ufsc br
author benoit
date Thu, 26 Apr 2007 08:15:39 +0000
parents cfaf9feae0f9
children 2e7209604069
files bswap.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bswap.h	Wed Apr 25 08:47:15 2007 +0000
+++ b/bswap.h	Thu Apr 26 08:15:39 2007 +0000
@@ -111,7 +111,8 @@
 #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 @@
 #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