summaryrefslogtreecommitdiff
path: root/chromium/media/base/media_util.cc
blob: 2d2003cbe0e146b5c001c32b98c590df9f40bd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2015 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.

#include "media/base/media_util.h"

#include "media/base/encryption_pattern.h"

namespace media {

std::vector<uint8_t> EmptyExtraData() {
  return std::vector<uint8_t>();
}

EncryptionScheme Unencrypted() {
  return EncryptionScheme();
}

EncryptionScheme AesCtrEncryptionScheme() {
  return EncryptionScheme(EncryptionScheme::CIPHER_MODE_AES_CTR,
                          EncryptionPattern());
}

}  // namespace media