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) {
63 int off = ((s & 0x1f) << 8) + 1;
66 l += bytestream2_get_byte(gb);
68 off += bytestream2_get_byte(gb);
73 if (l > *size - len) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
memory handling functions
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 or reallocate a block of memory.
void av_memcpy_backptr(uint8_t *dst, int back, int cnt)
deliberately overlapping memcpy implementation