Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
François Cartegnie
dav1d
Commits
550fe5d2
Commit
550fe5d2
authored
Oct 21, 2018
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix palette values when we reach max plane values
Fixes #82.
parent
c9b91bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/decode.c
src/decode.c
+1
-1
No files found.
src/decode.c
View file @
550fe5d2
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment