Factorize declaration for the two variants of put_bits().
Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1b923aa44a
commit
86755e82f7
@ -195,8 +195,8 @@ typedef struct RL_VLC_ELEM {
|
|||||||
uint8_t run;
|
uint8_t run;
|
||||||
} RL_VLC_ELEM;
|
} RL_VLC_ELEM;
|
||||||
|
|
||||||
#ifndef ALT_BITSTREAM_WRITER
|
|
||||||
static inline void put_bits(PutBitContext *s, int n, unsigned int value)
|
static inline void put_bits(PutBitContext *s, int n, unsigned int value)
|
||||||
|
#ifndef ALT_BITSTREAM_WRITER
|
||||||
{
|
{
|
||||||
unsigned int bit_buf;
|
unsigned int bit_buf;
|
||||||
int bit_left;
|
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_buf = bit_buf;
|
||||||
s->bit_left = bit_left;
|
s->bit_left = bit_left;
|
||||||
}
|
}
|
||||||
#endif
|
#else /* ALT_BITSTREAM_WRITER defined */
|
||||||
|
|
||||||
|
|
||||||
#ifdef ALT_BITSTREAM_WRITER
|
|
||||||
static inline void put_bits(PutBitContext *s, int n, unsigned int value)
|
|
||||||
{
|
{
|
||||||
# ifdef ALIGNED_BITSTREAM_WRITER
|
# ifdef ALIGNED_BITSTREAM_WRITER
|
||||||
# if ARCH_X86
|
# if ARCH_X86
|
||||||
|
Loading…
x
Reference in New Issue
Block a user