Skip to content
Prev Previous commit
Next Next commit
Update app/background.cc
Co-authored-by: BenBE <BenBE@geshi.org>
  • Loading branch information
jjsarton and BenBE authored Sep 1, 2022
commit 9e8591cabc34f139ebfbd422c12e29e218b2cd52
2 changes: 1 addition & 1 deletion app/background.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int grab_background(std::shared_ptr<background_t> pbkd, int width, int height, c
if (pbkd->video) {
// grab frame & frame no. under mutex
std::unique_lock<std::mutex> hold(pbkd->rawmux);
cv::Rect_<int> crop = calcCropping(pbkd->raw.cols,pbkd->raw.rows,width, height);
cv::Rect_<int> crop = calcCropping(pbkd->raw.cols,pbkd->raw.rows,width, height);
cv::resize(pbkd->raw(crop), out, cv::Size(width, height));
frm = pbkd->frame;
} else {
Expand Down