mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 02:17:53 +00:00
Fix bug?
This commit is contained in:
parent
b67fb73fb4
commit
a717edd12e
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ void ExtractBasename(const char *filename, char *buf, size_t bufSz) {
|
||||||
size_t len = strlen(filename);
|
size_t len = strlen(filename);
|
||||||
const char *end = filename + len;
|
const char *end = filename + len;
|
||||||
const char *ext = end;
|
const char *ext = end;
|
||||||
const char *base = filename;
|
const char *base = NULL;
|
||||||
while(--end != filename && !base) {
|
while(--end != filename && !base) {
|
||||||
if(*end == '.') {
|
if(*end == '.') {
|
||||||
ext = end;
|
ext = end;
|
||||||
|
@ -321,7 +321,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ci->GetWidth() != img.GetWidth() ||
|
if (ci->GetWidth() != img.GetWidth() ||
|
||||||
ci->GetHeight() != img.GetHeight()) {
|
ci->GetHeight() != img.GetHeight()) {
|
||||||
fprintf(stderr, "Cannot compute image metrics: compressed and uncompressed dimensions differ.\n");
|
fprintf(stderr, "Cannot compute image metrics: compressed and uncompressed dimensions differ.\n");
|
||||||
} else {
|
} else {
|
||||||
double PSNR = img.ComputePSNR(ci);
|
double PSNR = img.ComputePSNR(ci);
|
||||||
|
|
Loading…
Reference in a new issue