DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
decrypt_config.cc
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "packager/media/base/decrypt_config.h"
6 
7 #include "packager/base/logging.h"
8 
9 namespace edash_packager {
10 namespace media {
11 
12 DecryptConfig::DecryptConfig(const std::vector<uint8_t>& key_id,
13  const std::vector<uint8_t>& iv,
14  const std::vector<SubsampleEntry>& subsamples)
15  : key_id_(key_id), iv_(iv), subsamples_(subsamples) {
16  CHECK_GT(key_id.size(), 0u);
17 }
18 
19 DecryptConfig::~DecryptConfig() {}
20 
21 } // namespace media
22 } // namespace edash_packager
DecryptConfig(const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &iv, const std::vector< SubsampleEntry > &subsamples)