-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[video_frame] Fix a few incorrect usages of VideoFrame::writable_data
The changed locations violated the CHECK in https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.h;l=577 which only allows usage of `writable_data` for owned shared memory. These encoders don't actually modify the frame, so the the const `visible_data` method is more appropriate. The only sticking point is that the APIs unfortunately take non-const uint8_t* so the pointer returned from `visible_data` is const_cast to make the type match up. (cherry picked from commit f475257) Fixed: 1458242 Change-Id: I2042c38a9c6f08e7a4cb7d3dadbba41924f5bf53 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654869 Commit-Queue: Bryant Chandler <bryantchandler@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Reviewed-by: Derek Schuff <dschuff@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1164154} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4658989 Auto-Submit: Bryant Chandler <bryantchandler@chromium.org> Commit-Queue: Derek Schuff <dschuff@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#272} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Bryant Chandler
authored and
Chromium LUCI CQ
committed
Jun 30, 2023
1 parent
e230f86
commit d5b7ead
Showing
4 changed files
with
13 additions
and
12 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
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