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
7d7b8d42
Commit
7d7b8d42
authored
Oct 17, 2018
by
Janne Grunau
Committed by
Ronald S. Bultje
Oct 18, 2018
Browse files
dav1d_decode: avoid broken and unecessary int cast in assert
Fixes
#66
.
parent
7b826d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib.c
View file @
7d7b8d42
...
...
@@ -193,7 +193,7 @@ int dav1d_decode(Dav1dContext *const c,
if
((
res
=
dav1d_parse_obus
(
c
,
in
))
<
0
)
return
res
;
assert
(
res
<=
(
int
)
in
->
sz
);
assert
(
(
size_t
)
res
<=
in
->
sz
);
in
->
sz
-=
res
;
in
->
data
+=
res
;
if
(
!
in
->
sz
)
dav1d_data_unref
(
in
);
...
...
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