-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fn rav1d_prepare_intra_edges
: Make data race safe (#1144)
`fn rav1d_prepare_intra_edges` was already safe since we constructed the slice before calling the `fn`, but the slice construction was `unsafe`, and it was overlapping other `DisjointMut` `&mut` borrows. This changes it to use `Rav1dPictureDataComponent` and thus be fully safe. There's some duplication in the callers for the offsets and stuff. That'll go away as I make more things fully safe regarding picture data.
- Loading branch information
Showing
2 changed files
with
89 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters