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.
[mp2t] Support transition from encrypted buffers to clear buffers
Pes with clear stream type may appear after pes with encrypted stream type, without resetting the decrypt config. In this case, the stream parser should mark the buffers as clear because the stream type itself already indicates the buffers in the pes are clear buffers. EsParser now checks initial encryption scheme for Audio/VideoConfig, so that the decoder could know the whole stream may contain encrypted buffers. This is to help the decoder to initialize the secure pipeline correctly from the start of the playback. EsParser checks whether there's valid decrypt config to mark whether the buffers are clear or not. If the pes' stream type is clear, we pass an empty GetDecryptConfigCB so that EsParser will treat the buffers as clear buffers. Bug: internal b/142442975 Test: Test mentioned in the bug. Change-Id: Ib5a46ea6ef88bd954487fe958808bde6ae8746e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1912990 Commit-Queue: Yuchen Liu <yucliu@chromium.org> Reviewed-by: Kongqun Yang <kqyang@chromium.org> Reviewed-by: Xiaohan Wang <xhwang@chromium.org> Reviewed-by: Doug Steedman <dougsteed@chromium.org> Cr-Commit-Position: refs/heads/master@{#716733}
- Loading branch information
Yuchen Liu
authored and
Commit Bot
committed
Nov 19, 2019
1 parent
45a2aeb
commit 887260a
Showing
6 changed files
with
46 additions
and
45 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
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