Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
c018a098
Commit
c018a098
authored
Mar 13, 2019
by
Luca Barbato
Committed by
Luca Barbato
Jun 25, 2019
Browse files
crav1e: Use make_mut in rav1e_frame_fill_plane
Should support the frame reuse better.
parent
7d679b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/capi.rs
View file @
c018a098
...
...
@@ -384,7 +384,8 @@ pub unsafe extern "C" fn rav1e_frame_fill_plane(
stride
:
ptrdiff_t
,
bytewidth
:
c_int
,
)
{
let
input
=
Arc
::
get_mut
(
&
mut
(
*
frame
)
.0
)
.unwrap
();
let
f
=
&
mut
(
*
frame
)
.0
;
let
input
=
Arc
::
make_mut
(
f
);
let
data_slice
=
slice
::
from_raw_parts
(
data
,
data_len
as
usize
);
input
.planes
[
plane
as
usize
]
.copy_from_raw_u8
(
data_slice
,
stride
as
usize
,
bytewidth
as
usize
);
...
...
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