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:
parent
2b4b6c5613
commit
3a2f6c700d
3 changed files with 34 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue