audio_core: Fix FDK and FFmpeg compile errors. (#6591)
This commit is contained in:
parent
c67c648c1a
commit
f1ece7c56f
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in New Issue