forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Video Capture] Fix dangerous silent remapping of video pixel format
Added all video pixel formats from media::VideoPixelFormat to media::mojom::VideoCapturePixelFormat. Updated Mojo typemapping to have a 1:1 mapping between the two. A recent CL https://chromium-review.googlesource.com/c/chromium/src/+/1026795 caused a regression by introducing a new mojo enum VideoCapturePixelType and typemapping it to media::VideoPixelFormat, see crbug/839742. A quick mitigation fix was landed and merged into M68. However, the fix is specific to a particular single format. The current state still has the danger of having produced similar regressions occurring for other formats, which may simply not yet have surfaced. Using TBR since this has been reviewed previously at https://chromium-review.googlesource.com/c/chromium/src/+/1050489 TBR=xhwang@chromium.org,rockot@chromium.org,sandersd@chromium.org,rsesek@chromium.org,chfremer@chromium.org,lasoren@chromium.org Bug: 852096 Change-Id: I6f6d3add996d3557f33fbd42084ad2a9844b5957 Reviewed-on: https://chromium-review.googlesource.com/1098143 Commit-Queue: Christian Fremerey <chfremer@chromium.org> Reviewed-by: Christian Fremerey <chfremer@chromium.org> Reviewed-by: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#567347}
- Loading branch information
Christian Fremerey
authored and
Commit Bot
committed
Jun 14, 2018
1 parent
8c022dc
commit 67b738e
Showing
2 changed files
with
126 additions
and
15 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