about summary refs log tree commit diff
path: root/analyzer/pnmpsnr.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-03-29 00:21:34 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-03-29 00:21:34 +0000
commitd85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3 (patch)
tree026f383539bf2a4f8c6490dda028c6275df1746f /analyzer/pnmpsnr.c
parentb471bdeab9d35c654d32dfca1a203261553e0e2e (diff)
downloadnetpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.tar.gz
netpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.tar.xz
netpbm-mirror-d85ab56d6b4c7e30a6ff90ca42bb2eb9893b63a3.zip
fix bug: for PGM images, says they differ when they don't and vice versa
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1445 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pnmpsnr.c')
-rw-r--r--analyzer/pnmpsnr.c2
1 files changed, 1 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