From 73ff571d24795de12f3074d4a008c6a7b1a1d924 Mon Sep 17 00:00:00 2001 From: FalseHonesty Date: Sun, 6 Jun 2021 13:24:10 -0400 Subject: [PATCH] Userland: Fix matroska utility displaying invalid track data --- Userland/Utilities/matroska.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/matroska.cpp b/Userland/Utilities/matroska.cpp index bc7a951433b..fba6d64e446 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); } }