Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -62,10 +62,9 @@ void ff_build_rac_states(RangeCoder *c, int factor, int max_p); · 61 unmodified lines | ||
| 62 | 62 | static inline void renorm_encoder(RangeCoder *c) |
| 63 | 63 | { |
| 64 | 64 | // FIXME: optimize |
| 65 | − if (c->outstanding_byte < 0) { | |
| 66 | − c->outstanding_byte = c->low >> 8; | |
| 67 | − } else if (c->low <= 0xFF00) { | |
| 68 | − *c->bytestream++ = c->outstanding_byte; | |
| 65 | + if (c->low <= 0xFF00) { | |
| 66 | + *c->bytestream = c->outstanding_byte; | |
| 67 | + c->bytestream += c->outstanding_byte >= 0; | |
| 69 | 68 | for (; c->outstanding_count; c->outstanding_count--) |
| 70 | 69 | *c->bytestream++ = 0xFF; |
| 71 | 70 | c->outstanding_byte = c->low >> 8; |