Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
550fe5d2
Commit
550fe5d2
authored
Oct 21, 2018
by
Ronald S. Bultje
Browse files
Fix palette values when we reach max plane values
Fixes
#82
.
parent
c9b91bee
Pipeline
#1189
passed with stage
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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