mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1140933 - Handle empty subsample encryption information in SampleIterator - r=cpearce
This commit is contained in:
parent
91f4cd2afc
commit
103dc00fa4
@ -146,6 +146,10 @@ MP4Sample* SampleIterator::GetNext()
|
||||
sample->crypto.plain_sizes.AppendElement(reader.ReadU16());
|
||||
sample->crypto.encrypted_sizes.AppendElement(reader.ReadU32());
|
||||
}
|
||||
} else {
|
||||
// No subsample information means the entire sample is encrypted.
|
||||
sample->crypto.plain_sizes.AppendElement(0);
|
||||
sample->crypto.encrypted_sizes.AppendElement(sample->size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user