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

Unified Diff: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc

Issue 659343003: Chromecast media pipeline: handle CENC "full sample encryption" case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « no previous file | chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
diff --git a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
index 14eb742495f1ed97dd648749e14ba1252257d641..e428215d81c3c1eb06e24935b3b00a79b86743e6 100644
--- a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
+++ b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
@@ -141,8 +141,14 @@ void DecoderBufferBaseMarshaller::Write(
(buffer->decrypt_config() != NULL &&
buffer->decrypt_config()->iv().size() > 0);
CHECK(msg->WritePod(has_decrypt_config));
- if (has_decrypt_config)
- DecryptConfigMarshaller::Write(*buffer->decrypt_config(), msg);
+
+ if (has_decrypt_config) {
damienv1 2014/10/17 15:46:05 Note: I was thinking about sth like: ::media::Dec
gunsch 2014/10/17 16:04:02 heh, I had something exactly like this earlier and
+ if (buffer->decrypt_config()->subsamples().size() == 0)
+ DecryptConfigMarshaller::WriteFullSampleEncryption(
+ *buffer->decrypt_config(), buffer->data_size(), msg);
+ else
+ DecryptConfigMarshaller::Write(*buffer->decrypt_config(), msg);
+ }
CHECK(msg->WritePod(buffer->data_size()));
CHECK(msg->WriteBuffer(buffer->data(), buffer->data_size()));
« no previous file with comments | « no previous file | chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698