Shaka Packager SDK
decoder_configuration_record.cc
1 // Copyright 2016 Google LLC. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #include <packager/media/codecs/decoder_configuration_record.h>
8 
9 namespace shaka {
10 namespace media {
11 
12 DecoderConfigurationRecord::DecoderConfigurationRecord() = default;
13 DecoderConfigurationRecord::~DecoderConfigurationRecord() = default;
14 
15 bool DecoderConfigurationRecord::Parse(const uint8_t* data, size_t data_size) {
16  data_.assign(data, data + data_size);
17  nalu_.clear();
18  return ParseInternal();
19 }
20 
22  nalu_.push_back(nalu);
23 }
24 
25 } // namespace media
26 } // namespace shaka
void AddNalu(const Nalu &nalu)
Adds the given Nalu to the configuration.
bool Parse(const std::vector< uint8_t > &data)
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66