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

Function bytestream2_put_buffer

libavcodec/bytestream.h:286–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static av_always_inline unsigned int bytestream2_put_buffer(PutByteContext *p,
287 const uint8_t *src,
288 unsigned int size)
289{
290 unsigned int size2;
291 if (p->eof)
292 return 0;
293 size2 = FFMIN(p->buffer_end - p->buffer, size);
294 if (size2 != size)
295 p->eof = 1;
296 memcpy(p->buffer, src, size2);
297 p->buffer += size2;
298 return size2;
299}
300
301static av_always_inline unsigned int bytestream2_put_bufferu(PutByteContext *p,
302 const uint8_t *src,

Callers 15

vorbis_packetFunction · 0.85
append_flv_dataFunction · 0.85
mcc_read_headerFunction · 0.85
jpeg_create_headerFunction · 0.85
encode_planeFunction · 0.85
ffat_get_magic_cookieFunction · 0.85
encode_frameFunction · 0.85
lz4_decompressFunction · 0.85
exif_write_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected