diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 263fe9aa5a..e586637e9d 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -89,6 +89,12 @@ typedef struct PutBitContext { int size_in_bits; } PutBitContext; +/** + * Initializes the PutBitContext \p s. + * + * @param buffer the buffer where to put bits + * @param buffer_size the size in bytes of \p buffer + */ static inline void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size) { if(buffer_size < 0) {