citra-emu
/
citra
Archived
1
0
Fork 0

audio_core: Fix FDK and FFmpeg compile errors. (#6591)

This commit is contained in:
Steveice10 2023-06-02 19:00:09 -07:00 committed by GitHub
parent c67c648c1a
commit f1ece7c56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ std::optional<BinaryMessage> FDKDecoder::Impl::ProcessRequest(const BinaryMessag
} }
case DecoderCommand::Unknown: { case DecoderCommand::Unknown: {
BinaryMessage response = request; BinaryMessage response = request;
response.header.result = 0x0; response.header.result = ResultStatus::Success;
return response; return response;
} }
default: default:
@ -116,7 +116,7 @@ std::optional<BinaryMessage> FDKDecoder::Impl::ProcessRequest(const BinaryMessag
} }
std::optional<BinaryMessage> FDKDecoder::Impl::Decode(const BinaryMessage& request) { std::optional<BinaryMessage> FDKDecoder::Impl::Decode(const BinaryMessage& request) {
BinaryMessages response; BinaryMessage response{};
response.header.codec = request.header.codec; response.header.codec = request.header.codec;
response.header.cmd = request.header.cmd; response.header.cmd = request.header.cmd;
response.decode_aac_response.size = request.decode_aac_request.size; response.decode_aac_response.size = request.decode_aac_request.size;

View File

@ -143,7 +143,7 @@ void FFMPEGDecoder::Impl::Clear() {
} }
std::optional<BinaryMessage> FFMPEGDecoder::Impl::Decode(const BinaryMessage& request) { std::optional<BinaryMessage> FFMPEGDecoder::Impl::Decode(const BinaryMessage& request) {
BinaryMessage response; BinaryMessage response{};
response.header.codec = request.header.codec; response.header.codec = request.header.codec;
response.header.cmd = request.header.cmd; response.header.cmd = request.header.cmd;
response.decode_aac_response.size = request.decode_aac_request.size; response.decode_aac_response.size = request.decode_aac_request.size;