Revision 71a48ff2 libavcodec/bitstream.h

View differences:

libavcodec/bitstream.h
85 85
    int bit_left;
86 86
    uint8_t *buf, *buf_ptr, *buf_end;
87 87
#endif
88
    int size_in_bits;
88 89
} PutBitContext;
89 90

  
90 91
static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
......
94 95
        buffer = NULL;
95 96
    }
96 97

  
98
    s->size_in_bits= 8*buffer_size;
97 99
    s->buf = buffer;
98 100
    s->buf_end = s->buf + buffer_size;
99 101
#ifdef ALT_BITSTREAM_WRITER

Also available in: Unified diff