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

Function flush_put_bits

libavcodec/put_bits.h:153–172  ·  view source on GitHub ↗

* Pad the end of the output stream with zeros. */

Source from the content-addressed store, hash-verified

151 * Pad the end of the output stream with zeros.
152 */
153static inline void flush_put_bits(PutBitContext *s)
154{
155#ifndef BITSTREAM_WRITER_LE
156 if (s->bit_left < BUF_BITS)
157 s->bit_buf <<= s->bit_left;
158#endif
159 while (s->bit_left < BUF_BITS) {
160 av_assert0(s->buf_ptr < s->buf_end);
161#ifdef BITSTREAM_WRITER_LE
162 *s->buf_ptr++ = s->bit_buf;
163 s->bit_buf >>= 8;
164#else
165 *s->buf_ptr++ = s->bit_buf >> (BUF_BITS - 8);
166 s->bit_buf <<= 8;
167#endif
168 s->bit_left += 8;
169 }
170 s->bit_left = BUF_BITS;
171 s->bit_buf = 0;
172}
173
174static inline void flush_put_bits_le(PutBitContext *s)
175{

Callers 15

mainFunction · 0.85
vvcc_writeFunction · 0.85
update_extradataFunction · 0.85
flv_write_aac_headerFunction · 0.85
put_swf_rectFunction · 0.85
put_swf_matrixFunction · 0.85
swf_write_headerFunction · 0.85
send_mode_aFunction · 0.85
send_mode_bFunction · 0.85
read_packetFunction · 0.85
ff_isom_write_av1cFunction · 0.85
update_extradataFunction · 0.85

Calls

no outgoing calls

Tested by 5

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
put_cabac_terminateFunction · 0.68