Commit 550fe5d2 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Fix palette values when we reach max plane values

Fixes #82.
parent c9b91bee
......@@ -426,7 +426,7 @@ static void read_pal_plane(Dav1dTileContext *const t, Av1Block *const b,
prev = pal[i++] = imin(prev + delta + !pl, max);
if (prev + !pl >= max) {
for (; i < pal_sz; i++)
pal[i] = pal[i - 1];
pal[i] = pal[i - 1] + !pl;
break;
}
bits = imin(bits, 1 + ulog2(max - prev - !pl));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment