| 40 | }; |
| 41 | |
| 42 | int ff_vpx_init_range_decoder(VPXRangeCoder *c, const uint8_t *buf, int buf_size) |
| 43 | { |
| 44 | c->high = 255; |
| 45 | c->bits = -16; |
| 46 | c->buffer = buf; |
| 47 | c->end = buf + buf_size; |
| 48 | c->end_reached = 0; |
| 49 | if (buf_size < 1) |
| 50 | return AVERROR_INVALIDDATA; |
| 51 | c->code_word = bytestream_get_be24(&c->buffer); |
| 52 | return 0; |
| 53 | } |
no outgoing calls
no test coverage detected