Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
2857f114
Commit
2857f114
authored
May 01, 2008
by
Rémi Denis-Courmont
Browse files
Spare one use of WORDS_BIGENDIAN from vlc_common.h
parent
b1f21a53
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vlc_common.h
View file @
2857f114
...
...
@@ -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 ) \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment