mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
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.
This commit is contained in:
parent
d4c33a7134
commit
e1b3f9a26e
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/e1b3f9a26e Pull-request: https://github.com/SerenityOS/serenity/pull/18300 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/trflynn89
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue