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

Unified Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 757953002: Add SubsampleEntry constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 1 month 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 | « media/base/decrypt_config.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
index 7b6db1b87bd4f424d3463a60f7896fcdb5812bea..d9fba30b3903fb1fd20500a2c0e2005dd1e9f722 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -107,10 +107,9 @@ static scoped_refptr<media::DecoderBuffer> CopyDecoderBufferFrom(
std::vector<media::SubsampleEntry> subsamples;
for (uint32_t i = 0; i < input_buffer.num_subsamples; ++i) {
- media::SubsampleEntry subsample;
- subsample.clear_bytes = input_buffer.subsamples[i].clear_bytes;
- subsample.cypher_bytes = input_buffer.subsamples[i].cipher_bytes;
- subsamples.push_back(subsample);
+ subsamples.push_back(
+ media::SubsampleEntry(input_buffer.subsamples[i].clear_bytes,
+ input_buffer.subsamples[i].cipher_bytes));
}
scoped_ptr<media::DecryptConfig> decrypt_config(new media::DecryptConfig(
« no previous file with comments | « media/base/decrypt_config.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698