1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:47:45 +00:00

LibVideo: Parse the duration of Matroska files

This commit is contained in:
Zaggy1024 2022-10-29 17:01:01 -05:00 committed by Andreas Kling
parent 2b4b6c5613
commit 3a2f6c700d
3 changed files with 34 additions and 0 deletions

View file

@ -30,11 +30,14 @@ public:
void set_muxing_app(String muxing_app) { m_muxing_app = move(muxing_app); }
Utf8View writing_app() const { return Utf8View(m_writing_app); }
void set_writing_app(String writing_app) { m_writing_app = move(writing_app); }
Optional<double> duration() const { return m_duration; }
void set_duration(double duration) { m_duration.emplace(duration); }
private:
u64 m_timestamp_scale { 1'000'000 };
String m_muxing_app;
String m_writing_app;
Optional<double> m_duration;
};
class TrackEntry {