mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 23:20:36 +02:00
2026-09-15 19:39:00
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
6c96d9f43d
commit
1eb44e3ea6
1 changed files with 2 additions and 0 deletions
|
|
@ -898,12 +898,14 @@ void VpxRangeEncoder::Write(bool bit, s32 probability) {
|
|||
auto const current_pos = s32(stream_pos);
|
||||
--stream_pos;
|
||||
while (stream_data[stream_pos] == 0xff) {
|
||||
stream_data.resize(stream_pos + 1);
|
||||
stream_data[stream_pos++] = 0;
|
||||
stream_pos -= 2;
|
||||
}
|
||||
stream_data[stream_pos]++;
|
||||
stream_pos = current_pos;
|
||||
}
|
||||
stream_data.resize(stream_pos + 1);
|
||||
stream_data[stream_pos++] = u8((low_value >> (24 - offset)));
|
||||
|
||||
low_value <<= offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue