diff options
-rw-r--r-- | analyzer/pnmpsnr.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/analyzer/pnmpsnr.c b/analyzer/pnmpsnr.c index 88b2a981..c32f7d64 100644 --- a/analyzer/pnmpsnr.c +++ b/analyzer/pnmpsnr.c @@ -126,7 +126,7 @@ reportPsnr(struct pam const pam, else pm_message("Cr color component does not differ."); } else { - if (ySumSqDiff == 0) + if (ySumSqDiff > 0) pm_message("PSNR between %s and %s: %.2f dB", filespec1, filespec2, 10 * log10(yPsnr)); else diff --git a/doc/HISTORY b/doc/HISTORY index a3e872b0..54c62427 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -34,6 +34,9 @@ not yet BJH Release 10.54.00 pngtopam: fix bug: -verbose reports history chunk present when it's really a palette. + pnmpsnr: fix bug: says PGM images differ when they don't + and vice versa. + 10.12.30 BJH Release 10.53.00 Add pammosaicknit. Thanks Scott Pakin. |