Issue #1536 - Part 1: Add timecode checking for the WebM parser

This commit is contained in:
wolfbeast 2020-05-07 13:36:54 +02:00 committed by Roy Tam
commit d71453cef3
2 changed files with 13 additions and 0 deletions

View file

@ -75,6 +75,7 @@ struct WebMBufferedParser
, mSkipBytes(0)
, mTimecodeScale(1000000)
, mGotTimecodeScale(false)
, mGotClusterTimecode(false)
{
if (mStartOffset != 0) {
mState = FIND_CLUSTER_SYNC;
@ -260,6 +261,9 @@ private:
// True if we read the timecode scale from the segment info or have
// confirmed that the default value is to be used.
bool mGotTimecodeScale;
// True if we've read the cluster time code.
bool mGotClusterTimecode;
};
class WebMBufferedState final