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.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/codecs/libffmpegFLAC/bitstream.h b/apps/codecs/libffmpegFLAC/bitstream.h
index 288d839c4a..19f2b6e01c 100644
--- a/apps/codecs/libffmpegFLAC/bitstream.h
+++ b/apps/codecs/libffmpegFLAC/bitstream.h
@@ -18,6 +18,14 @@
18 #define ICODE_ATTR 18 #define ICODE_ATTR
19#endif 19#endif
20 20
21#ifndef ICODE_ATTR_FLAC
22#define ICODE_ATTR_FLAC ICODE_ATTR
23#endif
24
25#ifndef IBSS_ATTR_FLAC_DECODED0
26#define IBSS_ATTR_FLAC_DECODED0 IBSS_ATTR
27#endif
28
21/* Endian conversion routines for standalone compilation */ 29/* Endian conversion routines for standalone compilation */
22#ifdef BUILD_STANDALONE 30#ifdef BUILD_STANDALONE
23 #ifdef BUILD_BIGENDIAN 31 #ifdef BUILD_BIGENDIAN
@@ -252,7 +260,7 @@ static inline unsigned int get_bits(GetBitContext *s, int n){
252 return tmp; 260 return tmp;
253} 261}
254 262
255unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR; 263unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC;
256 264
257/** 265/**
258 * shows 0-17 bits. 266 * shows 0-17 bits.
@@ -267,7 +275,7 @@ static inline unsigned int show_bits(GetBitContext *s, int n){
267 return tmp; 275 return tmp;
268} 276}
269 277
270unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR; 278unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC;
271 279
272static inline void skip_bits(GetBitContext *s, int n){ 280static inline void skip_bits(GetBitContext *s, int n){
273 //Note gcc seems to optimize this to s->index+=n for the ALT_READER :)) 281 //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
@@ -328,6 +336,6 @@ static inline void init_get_bits(GetBitContext *s,
328 } 336 }
329} 337}
330 338
331void align_get_bits(GetBitContext *s) ICODE_ATTR; 339void align_get_bits(GetBitContext *s) ICODE_ATTR_FLAC;
332 340
333#endif /* BITSTREAM_H */ 341#endif /* BITSTREAM_H */