Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Unified Diff: media/base/android/media_codec_loop.cc

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/android/media_codec_loop.cc
diff --git a/media/base/android/media_codec_loop.cc b/media/base/android/media_codec_loop.cc
index 43acf0af3a01e40d896d618aa9d87f32215b4575..ff2d04eb3a1feb9587f50642c34c473917eeaf49 100644
--- a/media/base/android/media_codec_loop.cc
+++ b/media/base/android/media_codec_loop.cc
@@ -39,7 +39,7 @@ MediaCodecLoop::InputData::InputData(const InputData& other)
subsamples(other.subsamples),
presentation_time(other.presentation_time),
is_eos(other.is_eos),
- is_encrypted(other.is_encrypted) {}
+ encryption_scheme(other.encryption_scheme) {}
MediaCodecLoop::InputData::~InputData() {}
@@ -199,14 +199,14 @@ void MediaCodecLoop::EnqueueInputBuffer(const InputBuffer& input_buffer) {
media::MediaCodecStatus status = MEDIA_CODEC_OK;
- if (input_data.is_encrypted) {
+ if (input_data.encryption_scheme.is_encrypted()) {
// Note that input_data might not have a valid memory ptr if this is a
// re-send of a buffer that was sent before decryption keys arrived.
status = media_codec_->QueueSecureInputBuffer(
input_buffer.index, input_data.memory, input_data.length,
input_data.key_id, input_data.iv, input_data.subsamples,
- input_data.presentation_time);
+ input_data.encryption_scheme, input_data.presentation_time);
} else {
status = media_codec_->QueueInputBuffer(

Powered by Google App Engine
This is Rietveld 408576698