Commit 2857f114 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Spare one use of WORDS_BIGENDIAN from vlc_common.h

parent b1f21a53
...@@ -149,17 +149,7 @@ typedef uint32_t vlc_fourcc_t; ...@@ -149,17 +149,7 @@ typedef uint32_t vlc_fourcc_t;
static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc ) static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
{ {
#ifdef WORDS_BIGENDIAN memcpy( psz_fourcc, &fcc, 4 );
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
} }
#define vlc_fourcc_to_char( a, b ) \ #define vlc_fourcc_to_char( a, b ) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment