summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorZaggy1024 <zaggy1024@gmail.com>2023-04-12 04:36:58 -0500
committerSam Atkins <atkinssj@gmail.com>2023-04-14 12:05:52 +0100
commite1b3f9a26eeace0a521b623a383ff76f7e2207f0 (patch)
tree8ca64143319a5b4cc1fcca8665ef75e52303787b /Userland
parentd4c33a713474ea0020edf4b5e4d2091dd6d8b748 (diff)
downloadserenity-e1b3f9a26eeace0a521b623a383ff76f7e2207f0.zip
LibVideo/Matroska: Remove assertion that cue seeks find earlier samples
Files can contain a first keyframe that is timestamped later than zero. We don't want to crash in those cases, so don't assert that it can't happen.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp
index 70551ae07f..5b8dd12671 100644
--- a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp
+++ b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.cpp
@@ -855,7 +855,7 @@ DecoderErrorOr<SampleIterator> Reader::seek_to_random_access_point(SampleIterato
{
if (TRY(has_cues_for_track(iterator.m_track.track_number()))) {
TRY(seek_to_cue_for_timestamp(iterator, timestamp));
- VERIFY(iterator.last_timestamp().has_value() && iterator.last_timestamp().value() <= timestamp);
+ VERIFY(iterator.last_timestamp().has_value());
return iterator;
}