зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1142433: Properly scale duration found in movie extend header box. r=k17e
--HG-- extra : rebase_source : c6e68f8c0510a4449f77cebbbfcc39ae4fbd24c3
This commit is contained in:
Родитель
12b79456cc
Коммит
e08bc83ae4
|
@ -1789,8 +1789,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
}
|
||||
duration = ntohl(duration32);
|
||||
}
|
||||
if (duration) {
|
||||
mFileMetaData->setInt64(kKeyMovieDuration, duration * 1000LL);
|
||||
if (duration && mHeaderTimescale) {
|
||||
mFileMetaData->setInt64(
|
||||
kKeyMovieDuration, (duration * 1000000) / mHeaderTimescale);
|
||||
}
|
||||
|
||||
*offset += chunk_size;
|
||||
|
|
Загрузка…
Ссылка в новой задаче