diff options
author | FalseHonesty <thefalsehonesty@gmail.com> | 2021-06-06 13:24:10 -0400 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-06 23:46:59 +0430 |
commit | 73ff571d24795de12f3074d4a008c6a7b1a1d924 (patch) | |
tree | 404ee4eb1bf30472918f800322eed3ea3bc7b32b | |
parent | 6591d423d480223bc331278cee972604835db6d5 (diff) | |
download | serenity-73ff571d24795de12f3074d4a008c6a7b1a1d924.zip |
Userland: Fix matroska utility displaying invalid track data
-rw-r--r-- | Userland/Utilities/matroska.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/matroska.cpp b/Userland/Utilities/matroska.cpp index bc7a951433..fba6d64e44 100644 --- a/Userland/Utilities/matroska.cpp +++ b/Userland/Utilities/matroska.cpp @@ -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); } } |