mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Userland: Fix matroska utility displaying invalid track data
This commit is contained in:
parent
6591d423d4
commit
73ff571d24
Notes:
sideshowbarker
2024-07-18 12:44:09 +09:00
Author: https://github.com/FalseHonesty Commit: https://github.com/SerenityOS/serenity/commit/73ff571d247 Pull-request: https://github.com/SerenityOS/serenity/pull/7850 Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -31,10 +31,10 @@ int main(int, char**)
|
|||
outln("\tTrack has CodecID \"{}\"", track.codec_id().characters());
|
||||
|
||||
if (track.track_type() == Video::TrackEntry::TrackType::Video) {
|
||||
const auto& video_track = track.video_track().value();
|
||||
const auto video_track = track.video_track().value();
|
||||
outln("\t\tVideo is {} pixels wide by {} pixels tall", video_track.pixel_width, video_track.pixel_height);
|
||||
} else if (track.track_type() == Video::TrackEntry::TrackType::Audio) {
|
||||
const auto& audio_track = track.audio_track().value();
|
||||
const auto audio_track = track.audio_track().value();
|
||||
outln("\t\tAudio has {} channels with a bit depth of {}", audio_track.channels, audio_track.bit_depth);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue