42 if (
c->bytestream ==
tmp.bytestream &&
c->bytestream >
c->bytestream_start)
43 tmp.low -= *--
tmp.bytestream;
44 tmp.bytestream_end =
tmp.bytestream;
49 if (
c->bytestream_end !=
c->bytestream)
66 for (p = 0; p< 1024; p++) {
94 if (
c.bytestream -
c.bytestream_start - actual_length !=
version) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
int ff_rac_terminate(RangeCoder *c, int version)
Terminates the range coder.
av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size)
void ff_build_rac_states(RangeCoder *c, int factor, int max_p)
av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
static int get_rac(RangeCoder *c, uint8_t *const state)
Context structure for the Lagged Fibonacci PRNG.
static int rac_check_termination(RangeCoder *c, int version)
Check if at the current position there is a valid looking termination.