Skip to content

Commit 1c04787

Browse files
committed
(RWEBP) The output file contains all 10 fixes discovered across these debugging sessions. The remaining 100.2 mean diff comes from the bmi[9] divergence where our code and libvpx make different decisions at a branching tree node despite apparently identical BD states and probabilities.
1 parent 3aa8841 commit 1c04787

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • libretro-common/formats/webp

libretro-common/formats/webp/rwebp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static uint32_t *vp8_decode(const uint8_t *data, size_t len,
10601060
mbw = (w+15) >> 4; mbh = (h+15) >> 4;
10611061
p0 = data + 10;
10621062
if ((size_t)(p0 - data) + p0s > len) return NULL;
1063-
vp8b_init(&br, p0, p0s);
1063+
vp8b_init(&br, p0, (size_t)(data + len - p0)); /* Use full buffer like libvpx */
10641064

10651065
vp8b_bit(&br); vp8b_bit(&br); /* color_space, clamping */
10661066

0 commit comments

Comments
 (0)