mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1138992: P1. Ignore ctts version if we have 0 samples in the table. r=kentuckyfriedtakahe
This commit is contained in:
parent
6eeea14c68
commit
21a90fd1ef
@ -388,13 +388,13 @@ status_t SampleTable::setCompositionTimeToSampleParams(
|
||||
return ERROR_IO;
|
||||
}
|
||||
|
||||
if (U32_AT(header) != 0) {
|
||||
uint32_t numEntries = U32_AT(&header[4]);
|
||||
|
||||
if (U32_AT(header) != 0 && numEntries) {
|
||||
// Expected version = 0, flags = 0.
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
|
||||
uint32_t numEntries = U32_AT(&header[4]);
|
||||
|
||||
if (data_size != ((uint64_t)numEntries + 1) * 8) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user