Removed the use of emplace_back.
This does not currently work on our mac builds, so this replaces it with push_back. Change-Id: Iecd292969daac059bdd23d1ad937ff4366a7943f
This commit is contained in:
parent
c4246d04fd
commit
591650e61d
|
@ -27,6 +27,7 @@ bool ProtectionSystemSpecificInfo::ParseBoxes(
|
||||||
const uint8_t* data,
|
const uint8_t* data,
|
||||||
size_t data_size,
|
size_t data_size,
|
||||||
std::vector<ProtectionSystemSpecificInfo>* pssh_boxes) {
|
std::vector<ProtectionSystemSpecificInfo>* pssh_boxes) {
|
||||||
|
pssh_boxes->clear();
|
||||||
BufferReader reader(data, data_size);
|
BufferReader reader(data, data_size);
|
||||||
while (reader.HasBytes(1)) {
|
while (reader.HasBytes(1)) {
|
||||||
size_t start_position = reader.pos();
|
size_t start_position = reader.pos();
|
||||||
|
@ -34,7 +35,7 @@ bool ProtectionSystemSpecificInfo::ParseBoxes(
|
||||||
RCHECK(reader.Read4(&size));
|
RCHECK(reader.Read4(&size));
|
||||||
RCHECK(reader.SkipBytes(size - 4));
|
RCHECK(reader.SkipBytes(size - 4));
|
||||||
|
|
||||||
pssh_boxes->emplace_back();
|
pssh_boxes->push_back(ProtectionSystemSpecificInfo());
|
||||||
RCHECK(pssh_boxes->back().Parse(data + start_position, size));
|
RCHECK(pssh_boxes->back().Parse(data + start_position, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue