Skip to content

Commit

Permalink
Validate width on combined image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Dave committed Nov 16, 2024
1 parent f5e83dc commit 0eb229e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/allcam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ void cls_allcam::getsizes_pct()
} else {
all_sizes.dst_h = 720;
all_sizes.dst_w = (int)((float)(all_sizes.dst_h * all_sizes.src_w /all_sizes.src_h));
if ((all_sizes.dst_h % 8) != 0) {
all_sizes.dst_h = all_sizes.dst_h - (all_sizes.dst_h % 8) + 8;
if ((all_sizes.dst_w % 8) != 0) {
all_sizes.dst_w = all_sizes.dst_w - (all_sizes.dst_w % 8) + 8;
}
all_sizes.dst_sz = (all_sizes.dst_w * all_sizes.dst_h *3)/2;
}
Expand Down

0 comments on commit 0eb229e

Please sign in to comment.