]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Factorize declaration for the two variants of put_bits().
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 11 Apr 2009 14:19:09 +0000 (14:19 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 11 Apr 2009 14:19:09 +0000 (14:19 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18439 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/bitstream.h

index 699c4a5c2a05f57ef3f1d174a9fa3dfbbca18f03..8b9a2b979e2b0f4fb563e91c47771f8d10bb0395 100644 (file)
@@ -195,8 +195,8 @@ typedef struct RL_VLC_ELEM {
     uint8_t run;
 } RL_VLC_ELEM;
 
-#ifndef ALT_BITSTREAM_WRITER
 static inline void put_bits(PutBitContext *s, int n, unsigned int value)
+#ifndef ALT_BITSTREAM_WRITER
 {
     unsigned int bit_buf;
     int bit_left;
@@ -246,11 +246,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
     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