[vlc-devel] commit: Spare one use of WORDS_BIGENDIAN from vlc_common.h ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 1 17:32:17 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 1 18:32:43 2008 +0300| [2857f1146eab870bf2649414e50fb0fdab055731]
Spare one use of WORDS_BIGENDIAN from vlc_common.h
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2857f1146eab870bf2649414e50fb0fdab055731
---
include/vlc_common.h | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 108ab39..3b8ab21 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -149,17 +149,7 @@ typedef uint32_t vlc_fourcc_t;
static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
{
-#ifdef WORDS_BIGENDIAN
- psz_fourcc[0] = (uint32_t) (fcc >> 24);
- psz_fourcc[1] = (uint32_t) (fcc >> 16);
- psz_fourcc[2] = (uint32_t) (fcc >> 8);
- psz_fourcc[3] = (uint32_t) (fcc);
-#else
- psz_fourcc[3] = (uint32_t) (fcc >> 24);
- psz_fourcc[2] = (uint32_t) (fcc >> 16);
- psz_fourcc[1] = (uint32_t) (fcc >> 8);
- psz_fourcc[0] = (uint32_t) (fcc);
-#endif
+ memcpy( psz_fourcc, &fcc, 4 );
}
#define vlc_fourcc_to_char( a, b ) \
More information about the vlc-devel
mailing list