mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-25 23:57:49 +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);
|
||||
const char *end = filename + len;
|
||||
const char *ext = end;
|
||||
const char *base = filename;
|
||||
const char *base = NULL;
|
||||
while(--end != filename && !base) {
|
||||
if(*end == '.') {
|
||||
ext = end;
|
||||
|
@ -321,7 +321,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
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");
|
||||
} else {
|
||||
double PSNR = img.ComputePSNR(ci);
|
||||
|
|
Loading…
Reference in a new issue