Bug 1142433: Properly scale duration found in movie extend header box. r=k17e

--HG--
extra : rebase_source : c6e68f8c0510a4449f77cebbbfcc39ae4fbd24c3
This commit is contained in:
Jean-Yves Avenard 2015-03-13 09:42:28 +11:00
Родитель 12b79456cc
Коммит e08bc83ae4
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;