const uint8_t *bytestream_end;
uint16_t contexts[DIRAC_CTX_COUNT];
+ int error;
} DiracArith;
extern const uint8_t ff_dirac_next_ctx[DIRAC_CTX_COUNT];
while (!dirac_get_arith_bit(c, follow_ctx)) {
if (ret >= 0x40000000) {
av_log(NULL, AV_LOG_ERROR, "dirac_get_arith_uint overflow\n");
+ c->error = AVERROR_INVALIDDATA;
return -1;
}
ret <<= 1;