Bug 1134064: Part3. Don't evict partial data and make resource unplayable. r=k17e

This commit is contained in:
Jean-Yves Avenard 2015-02-20 14:19:14 +13:00
parent bd730cc79a
commit fc5089207f

View File

@ -331,7 +331,7 @@ MP4Demuxer::GetEvictionOffset(Microseconds aTime)
for (int i = 0; i < mPrivate->mIndexes.Length(); i++) {
offset = std::min(offset, mPrivate->mIndexes[i]->GetEvictionOffset(aTime));
}
return offset == std::numeric_limits<uint64_t>::max() ? -1 : offset;
return offset == std::numeric_limits<uint64_t>::max() ? 0 : offset;
}
Microseconds