2013-09-24 01:35:40 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-10-01 22:10:21 +00:00
|
|
|
#include "packager/media/base/decrypt_config.h"
|
2013-09-24 01:35:40 +00:00
|
|
|
|
2014-10-01 22:10:21 +00:00
|
|
|
#include "packager/base/logging.h"
|
2013-09-24 01:35:40 +00:00
|
|
|
|
2014-09-19 20:41:13 +00:00
|
|
|
namespace edash_packager {
|
2013-09-24 01:35:40 +00:00
|
|
|
namespace media {
|
|
|
|
|
2014-09-30 21:52:21 +00:00
|
|
|
DecryptConfig::DecryptConfig(const std::vector<uint8_t>& key_id,
|
|
|
|
const std::vector<uint8_t>& iv,
|
2016-03-17 17:03:19 +00:00
|
|
|
const std::vector<SubsampleEntry>& subsamples,
|
|
|
|
EncryptionMode decryption_mode)
|
|
|
|
: key_id_(key_id),
|
|
|
|
iv_(iv),
|
|
|
|
subsamples_(subsamples),
|
|
|
|
decryption_mode_(decryption_mode) {
|
2013-09-24 01:35:40 +00:00
|
|
|
CHECK_GT(key_id.size(), 0u);
|
|
|
|
}
|
|
|
|
|
|
|
|
DecryptConfig::~DecryptConfig() {}
|
|
|
|
|
|
|
|
} // namespace media
|
2014-09-19 20:41:13 +00:00
|
|
|
} // namespace edash_packager
|