summaryrefslogtreecommitdiff
path: root/apps/codecs/libffmpegFLAC/bitstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libffmpegFLAC/bitstream.h')
-rw-r--r--apps/codecs/libffmpegFLAC/bitstream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libffmpegFLAC/bitstream.h b/apps/codecs/libffmpegFLAC/bitstream.h
index 19f2b6e01c..9a8c548d95 100644
--- a/apps/codecs/libffmpegFLAC/bitstream.h
+++ b/apps/codecs/libffmpegFLAC/bitstream.h
@@ -100,7 +100,7 @@ typedef struct RL_VLC_ELEM {
100# ifdef __GNUC__ 100# ifdef __GNUC__
101static inline uint32_t unaligned32(const void *v) { 101static inline uint32_t unaligned32(const void *v) {
102 struct Unaligned { 102 struct Unaligned {
103 uint32_t i; 103 uint32_t i;
104 } __attribute__((packed)); 104 } __attribute__((packed));
105 105
106 return ((const struct Unaligned *) v)->i; 106 return ((const struct Unaligned *) v)->i;
@@ -165,10 +165,10 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
165static inline int unaligned32_be(const void *v) 165static inline int unaligned32_be(const void *v)
166{ 166{
167#ifdef CONFIG_ALIGN 167#ifdef CONFIG_ALIGN
168 const uint8_t *p=v; 168 const uint8_t *p=v;
169 return (((p[0]<<8) | p[1])<<16) | (p[2]<<8) | (p[3]); 169 return (((p[0]<<8) | p[1])<<16) | (p[2]<<8) | (p[3]);
170#else 170#else
171 return betoh32( unaligned32(v)); //original 171 return betoh32( unaligned32(v)); //original
172#endif 172#endif
173} 173}
174 174