1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibVideo: Parse Matroska from ReadonlyBytes and keep the start position

Keeping the entire Matroska stream available is a prerequisite to being
able to stream from it and seek to cue points.
This commit is contained in:
Zaggy1024 2022-11-10 16:58:53 -06:00 committed by Andreas Kling
parent 2dfd236dcd
commit be9de58932
3 changed files with 21 additions and 23 deletions

View file

@ -15,7 +15,7 @@ DecoderErrorOr<NonnullOwnPtr<MatroskaDemuxer>> MatroskaDemuxer::from_file(String
DecoderErrorOr<NonnullOwnPtr<MatroskaDemuxer>> MatroskaDemuxer::from_data(ReadonlyBytes data)
{
return make<MatroskaDemuxer>(TRY(Reader::parse_matroska_from_data(data.data(), data.size())));
return make<MatroskaDemuxer>(TRY(Reader::parse_matroska_from_data(data)));
}
Vector<Track> MatroskaDemuxer::get_tracks_for_type(TrackType type)