Bug 1163227: Part4. Fix MP4TrackDemuxer eviction offset calculations. r=mattwoodrow

This commit is contained in:
Jean-Yves Avenard 2015-05-25 15:09:16 +10:00
parent 7186ab86c1
commit f7e131b6e0

View File

@ -298,7 +298,8 @@ int64_t
MP4TrackDemuxer::GetEvictionOffset(media::TimeUnit aTime)
{
MonitorAutoLock mon(mMonitor);
return int64_t(mIndex->GetEvictionOffset(aTime.ToMicroseconds()));
uint64_t offset = mIndex->GetEvictionOffset(aTime.ToMicroseconds());
return int64_t(offset == std::numeric_limits<uint64_t>::max() ? 0 : offset);
}
media::TimeIntervals