From f1ece7c56f459acf7c5475bd7fb4b45f7c9d4032 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Fri, 2 Jun 2023 19:00:09 -0700 Subject: [PATCH] audio_core: Fix FDK and FFmpeg compile errors. (#6591) --- src/audio_core/hle/fdk_decoder.cpp | 4 ++-- src/audio_core/hle/ffmpeg_decoder.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio_core/hle/fdk_decoder.cpp b/src/audio_core/hle/fdk_decoder.cpp index f0ce089c2..6a29d623d 100644 --- a/src/audio_core/hle/fdk_decoder.cpp +++ b/src/audio_core/hle/fdk_decoder.cpp @@ -105,7 +105,7 @@ std::optional FDKDecoder::Impl::ProcessRequest(const BinaryMessag } case DecoderCommand::Unknown: { BinaryMessage response = request; - response.header.result = 0x0; + response.header.result = ResultStatus::Success; return response; } default: @@ -116,7 +116,7 @@ std::optional FDKDecoder::Impl::ProcessRequest(const BinaryMessag } std::optional FDKDecoder::Impl::Decode(const BinaryMessage& request) { - BinaryMessages response; + BinaryMessage response{}; response.header.codec = request.header.codec; response.header.cmd = request.header.cmd; response.decode_aac_response.size = request.decode_aac_request.size; diff --git a/src/audio_core/hle/ffmpeg_decoder.cpp b/src/audio_core/hle/ffmpeg_decoder.cpp index 00524a8bc..c58bc0c3e 100644 --- a/src/audio_core/hle/ffmpeg_decoder.cpp +++ b/src/audio_core/hle/ffmpeg_decoder.cpp @@ -143,7 +143,7 @@ void FFMPEGDecoder::Impl::Clear() { } std::optional FFMPEGDecoder::Impl::Decode(const BinaryMessage& request) { - BinaryMessage response; + BinaryMessage response{}; response.header.codec = request.header.codec; response.header.cmd = request.header.cmd; response.decode_aac_response.size = request.decode_aac_request.size;