libbpg-0.9.8

This commit is contained in:
King_DuckZ 2021-03-15 14:26:22 +01:00
parent 1261ac523b
commit 62bba2b5bf
6 changed files with 18 additions and 5 deletions

View file

@ -1396,7 +1396,7 @@ char *x265_param2string(x265_param* p)
return NULL;
#define BOOL(param, cliopt) \
s += sprintf(s, " %s", (param) ? cliopt : "no-"cliopt);
s += sprintf(s, " %s", (param) ? cliopt : "no-" cliopt);
s += sprintf(s, "%dx%d", p->sourceWidth,p->sourceHeight);
s += sprintf(s, " fps=%u/%u", p->fpsNum, p->fpsDenom);

View file

@ -49,7 +49,7 @@ namespace {
{\
bErr = 0;\
p = strstr(opts, opt "=");\
char* q = strstr(opts, "no-"opt);\
char* q = strstr(opts, "no-" opt);\
if (p && sscanf(p, opt "=%d" , &i) && param_val != i)\
bErr = 1;\
else if (!param_val && !q && !p)\