| 148 | } |
| 149 | |
| 150 | static void arith2_init(ArithCoder *c, GetByteContext *gB) |
| 151 | { |
| 152 | c->low = 0; |
| 153 | c->high = 0xFFFFFF; |
| 154 | c->value = bytestream2_get_be24(gB); |
| 155 | c->overread = 0; |
| 156 | c->gbc.gB = gB; |
| 157 | c->get_model_sym = arith2_get_model_sym; |
| 158 | c->get_number = arith2_get_number; |
| 159 | } |
| 160 | |
| 161 | static int decode_pal_v2(MSS12Context *ctx, const uint8_t *buf, int buf_size) |
| 162 | { |