Issue #1536 - Part 2: Parse content to decide whether it's a media segment.

This commit is contained in:
wolfbeast 2020-05-07 13:40:21 +02:00 committed by Roy Tam
commit c604c8363d
3 changed files with 27 additions and 23 deletions

View file

@ -275,6 +275,12 @@ WebMBufferedParser::EndSegmentOffset(int64_t aOffset)
return mBlockEndOffset;
}
int64_t
WebMBufferedParser::GetClusterOffset() const
{
return mClusterOffset;
}
// SyncOffsetComparator and TimeComparator are slightly confusing, in that
// the nsTArray they're used with (mTimeMapping) is sorted by mEndOffset and
// these comparators are used on the other fields of WebMTimeDataOffset.