修bug
This commit is contained in:
parent
2eb3cefd8a
commit
9bcb82e461
@ -431,7 +431,11 @@ private:
|
||||
auto Check = [&](const rga_buffer_t& s, const rga_buffer_t& d) -> bool {
|
||||
const im_rect sr{0, 0, s.width, s.height};
|
||||
const im_rect dr{0, 0, d.width, d.height};
|
||||
const IM_STATUS chk = imcheck(s, d, sr, dr);
|
||||
// Do NOT call the imcheck(...) variadic macro with 0 extra args:
|
||||
// under -Wpedantic/-std=c++11 it expands to a zero-sized array.
|
||||
rga_buffer_t pat{};
|
||||
const im_rect pr{0, 0, 0, 0};
|
||||
const IM_STATUS chk = imcheck_t(s, d, pat, sr, dr, pr, 0);
|
||||
if (chk != IM_STATUS_NOERROR && chk != IM_STATUS_SUCCESS) {
|
||||
std::cerr << "[preprocess] RGA imcheck failed: " << imStrError(chk) << "\n";
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user