From 5fa77b04ead001341403f343f0ad90f5836c7064 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 14 Nov 2023 19:36:27 +0100 Subject: [PATCH] recording: remove unused duration member variable --- rpcs3/util/media_utils.cpp | 3 --- rpcs3/util/media_utils.h | 1 - 2 files changed, 4 deletions(-) diff --git a/rpcs3/util/media_utils.cpp b/rpcs3/util/media_utils.cpp index 29eee4162c..439ba98683 100644 --- a/rpcs3/util/media_utils.cpp +++ b/rpcs3/util/media_utils.cpp @@ -357,7 +357,6 @@ namespace utils track_fully_consumed = 0; has_error = false; m_size = 0; - duration_ms = 0; timestamps_ms.clear(); data.clear(); } @@ -491,8 +490,6 @@ namespace utils return; } - duration_ms = stream->duration / 1000; - AVPacket* packet = av_packet_alloc(); std::unique_ptr packet_(packet); diff --git a/rpcs3/util/media_utils.h b/rpcs3/util/media_utils.h index 8bbea8c7ee..08c770de10 100644 --- a/rpcs3/util/media_utils.h +++ b/rpcs3/util/media_utils.h @@ -76,7 +76,6 @@ namespace utils const s32 sample_rate = 48000; std::vector data; atomic_t m_size = 0; - atomic_t duration_ms = 0; atomic_t track_fully_decoded{0}; atomic_t track_fully_consumed{0}; atomic_t has_error{false};