From 6b8aef9fddd345f0247d4c5331a39f095b5af5c2 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 5 Nov 2022 10:43:23 +0100 Subject: [PATCH] cellAdec: fix some uninitialized member warnings --- rpcs3/Emu/Cell/Modules/cellAdec.cpp | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellAdec.cpp b/rpcs3/Emu/Cell/Modules/cellAdec.cpp index 34f1999dbe..77deedc265 100644 --- a/rpcs3/Emu/Cell/Modules/cellAdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAdec.cpp @@ -282,15 +282,10 @@ public: struct AudioReader { - u32 addr; - u32 size; - bool init; - bool has_ats; - - AudioReader() - : init(false) - { - } + u32 addr{}; + u32 size{}; + bool init{}; + bool has_ats{}; } reader; @@ -304,13 +299,14 @@ public: u32 memBias = 0; AdecTask task; - u64 last_pts, first_pts; + u64 last_pts{}; + u64 first_pts{}; - u32 ch_out; - u32 ch_cfg; - u32 frame_size; - u32 sample_rate; - bool use_ats_headers; + u32 ch_out{}; + u32 ch_cfg{}; + u32 frame_size{}; + u32 sample_rate{}; + bool use_ats_headers{}; AudioDecoder(s32 type, u32 addr, u32 size, vm::ptr func, u32 arg) : ppu_thread({}, "", 0)