37 #define LZF_LITERAL_MAX (1 << 5) 38 #define LZF_LONG_BACKREF 7 + 2 47 uint8_t s = bytestream2_get_byte(gb);
51 if (s > *size - len) {
64 int off = ((s & 0x1f) << 8) + 1;
67 l += bytestream2_get_byte(gb);
69 off += bytestream2_get_byte(gb);
74 if (l > *size - len) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Memory handling functions.
void av_memcpy_backptr(uint8_t *dst, int back, int cnt)
Overlapping memcpy() implementation.
int ff_lzf_uncompress(GetByteContext *gb, uint8_t **buf, int64_t *size)
static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.