* [maixcam2] Fix error: (-215:Assertion failed) in function release

This commit is contained in:
lxowalle
2026-01-09 11:38:43 +08:00
parent fbd91ead05
commit e91f7412c4

View File

@@ -723,10 +723,10 @@ namespace maix::display
input_img_h = input_img_h / scale;
input_img_w = ((input_img_w + 16) >> 4 )<< 4;
input_img_h = ((input_img_h + 2) >> 1 )<< 1;
input_img = img.resize(input_img_w, input_img_h, fit);
input_img = img.resize(input_img_w, input_img_h);
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
} else {
input_img = img.resize(input_img_w, input_img_h, fit);
input_img = img.resize(input_img_w, input_img_h);
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
}
if (input_img == nullptr) {