Skip to content

Commit

Permalink
fix win32 unsigned warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 24, 2024
1 parent dc62363 commit 4aa3a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rem/vidconv/vconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,13 @@ void vidconv_center(struct vidframe *dst, const struct vidframe *src,
double rh = (double)src->size.h / (double)r->h;
sc.size.w =
(unsigned)min((double)src->size.w, (double)r->w * rh);
sc.xoffs = ((src->size.w / rh) - r->w) / 2;
sc.xoffs = ((unsigned)(src->size.w / rh) - r->w) / 2;
}
else {
double rw = (double)src->size.w / (double)r->w;
sc.size.h =
(unsigned)min((double)src->size.h, (double)r->h * rw);
sc.yoffs = ((src->size.h / rw) - r->h) / 2;
sc.yoffs = ((unsigned)(src->size.h / rw) - r->h) / 2;
}

vidconv(dst, &sc, r);
Expand Down

0 comments on commit 4aa3a25

Please sign in to comment.