changeset 9402:9a1c34f662e4 libavcodec

Factorize declaration for the two variants of put_bits().
author stefano
date Sat, 11 Apr 2009 14:19:09 +0000
parents 5921cf626a4a
children 12fe11381b21
files bitstream.h
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/bitstream.h	Sat Apr 11 14:16:30 2009 +0000
+++ b/bitstream.h	Sat Apr 11 14:19:09 2009 +0000
@@ -195,8 +195,8 @@
     uint8_t run;
 } RL_VLC_ELEM;
 
+static inline void put_bits(PutBitContext *s, int n, unsigned int value)
 #ifndef ALT_BITSTREAM_WRITER
-static inline void put_bits(PutBitContext *s, int n, unsigned int value)
 {
     unsigned int bit_buf;
     int bit_left;
@@ -246,11 +246,7 @@
     s->bit_buf = bit_buf;
     s->bit_left = bit_left;
 }
-#endif
-
-
-#ifdef ALT_BITSTREAM_WRITER
-static inline void put_bits(PutBitContext *s, int n, unsigned int value)
+#else  /* ALT_BITSTREAM_WRITER defined */
 {
 #    ifdef ALIGNED_BITSTREAM_WRITER
 #        if ARCH_X86