diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-11 14:19:09 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-11 14:19:09 +0000 |
commit | 86755e82f7f0063f070ca67085cb76b78bc807fa (patch) | |
tree | 07beab686d75ee10c62361522681702f934ea8b6 | |
parent | 1b923aa44ab95c352f9062024166c3d603a941f8 (diff) | |
download | ffmpeg-86755e82f7f0063f070ca67085cb76b78bc807fa.tar.gz |
Factorize declaration for the two variants of put_bits().
Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/bitstream.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 699c4a5c2a..8b9a2b979e 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -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 |