MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / init_get_bits8

Function init_get_bits8

libavcodec/get_bits.h:544–550  ·  view source on GitHub ↗

* Initialize GetBitContext. * @param buffer bitstream buffer, must be AV_INPUT_BUFFER_PADDING_SIZE bytes * larger than the actual read bits because some optimized bitstream * readers read 32 or 64 bit at once and could read over the end * @param byte_size the size of the buffer in bytes * @return 0 on success, AVERROR_INVALIDDATA if the buffer_size would overflow. */

Source from the content-addressed store, hash-verified

542 * @return 0 on success, AVERROR_INVALIDDATA if the buffer_size would overflow.
543 */
544static inline int init_get_bits8(GetBitContext *s, const uint8_t *buffer,
545 int byte_size)
546{
547 if (byte_size > INT_MAX / 8 || byte_size < 0)
548 byte_size = -1;
549 return init_get_bits(s, buffer, byte_size * 8);
550}
551
552static inline int init_get_bits8_le(GetBitContext *s, const uint8_t *buffer,
553 int byte_size)

Callers 15

tak_read_headerFunction · 0.85
vvcc_add_nal_unitFunction · 0.85
update_extradataFunction · 0.85
ff_iamf_parse_obu_headerFunction · 0.85
hvcc_add_nal_unitFunction · 0.85
read_obu_with_sizeFunction · 0.85
mxf_parse_h264_frameFunction · 0.85
ff_avc_decode_spsFunction · 0.85
swf_probeFunction · 0.85
ff_av1_parse_seq_headerFunction · 0.85

Calls 1

init_get_bitsFunction · 0.85

Tested by 2

test_apv_read_vlcFunction · 0.68