This commit is contained in:
Pavel Krajcevski 2014-11-19 15:24:08 -05:00
parent b67fb73fb4
commit a717edd12e

View file

@ -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);