mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix OS-X compiler warning
cfg.c:1024:74: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'unsigned long long' [-Wformat] fprintf(stderr, "Too large ROI size: %llu (maximum %zu).\n", size, SIZE_MAX);
This commit is contained in:
parent
4467506ef1
commit
c7d536bbcd
|
@ -1018,12 +1018,11 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const long long unsigned size = (long long unsigned) width *
|
||||
(long long unsigned) height;
|
||||
if (size > SIZE_MAX) {
|
||||
fprintf(stderr, "Too large ROI size: %llu (maximum %zu).\n", size, SIZE_MAX);
|
||||
if (width > 10000 || height > 10000) {
|
||||
fprintf(stderr, "ROI dimensions exceed arbitrary value of 10000.\n");
|
||||
return 0;
|
||||
}
|
||||
const unsigned size = width * height;
|
||||
|
||||
cfg->roi.width = width;
|
||||
cfg->roi.height = height;
|
||||
|
|
Loading…
Reference in a new issue