fix formatting for media-ndk
This commit is contained in:
parent
3410b96400
commit
37384174d9
|
@ -202,8 +202,7 @@ std::optional<BinaryResponse> MediaNDKDecoder::Impl::Decode(const BinaryRequest&
|
||||||
size_t stream0_size = out_streams[0].size() * sizeof(u16);
|
size_t stream0_size = out_streams[0].size() * sizeof(u16);
|
||||||
if (stream0_size != 0) {
|
if (stream0_size != 0) {
|
||||||
if (request.dst_addr_ch0 < Memory::FCRAM_PADDR ||
|
if (request.dst_addr_ch0 < Memory::FCRAM_PADDR ||
|
||||||
request.dst_addr_ch0 + stream0_size >
|
request.dst_addr_ch0 + stream0_size > Memory::FCRAM_PADDR + Memory::FCRAM_SIZE) {
|
||||||
Memory::FCRAM_PADDR + Memory::FCRAM_SIZE) {
|
|
||||||
LOG_ERROR(Audio_DSP, "Got out of bounds dst_addr_ch0 {:08x}", request.dst_addr_ch0);
|
LOG_ERROR(Audio_DSP, "Got out of bounds dst_addr_ch0 {:08x}", request.dst_addr_ch0);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -214,8 +213,7 @@ std::optional<BinaryResponse> MediaNDKDecoder::Impl::Decode(const BinaryRequest&
|
||||||
size_t stream1_size = out_streams[1].size() * sizeof(u16);
|
size_t stream1_size = out_streams[1].size() * sizeof(u16);
|
||||||
if (stream1_size != 0) {
|
if (stream1_size != 0) {
|
||||||
if (request.dst_addr_ch1 < Memory::FCRAM_PADDR ||
|
if (request.dst_addr_ch1 < Memory::FCRAM_PADDR ||
|
||||||
request.dst_addr_ch1 + stream1_size >
|
request.dst_addr_ch1 + stream1_size > Memory::FCRAM_PADDR + Memory::FCRAM_SIZE) {
|
||||||
Memory::FCRAM_PADDR + Memory::FCRAM_SIZE) {
|
|
||||||
LOG_ERROR(Audio_DSP, "Got out of bounds dst_addr_ch1 {:08x}", request.dst_addr_ch1);
|
LOG_ERROR(Audio_DSP, "Got out of bounds dst_addr_ch1 {:08x}", request.dst_addr_ch1);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue