Change assertions to checks when parsing TrackPositions

Malformed files woudl cause the parser to assert.

Instead now it stops parsing and skips the segment.

Change-Id: I256b3b72e43f969693ae16547ca98da07d665e21
This commit is contained in:
Leonel Togniolli
2015-04-18 22:14:12 +01:00
committed by James Zern
parent d04580fda5
commit 2cb6a28b09
2 changed files with 19 additions and 12 deletions

View File

@@ -704,7 +704,7 @@ class CuePoint {
// reference = clusters containing req'd referenced blocks
// reftime = timecode of the referenced block
void Parse(IMkvReader*, long long, long long);
bool Parse(IMkvReader*, long long, long long);
};
const TrackPosition* Find(const Track*) const;