From 02aca13f192f5b49ed4ccce28fcf62ea29b2e2fe Mon Sep 17 00:00:00 2001
From: Matthias Vogelgesang <matthias.vogelgesang@kit.edu>
Date: Wed, 23 Jul 2014 14:44:11 +0200
Subject: Update number of frames only on success

---
 test/ipedec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/ipedec.c b/test/ipedec.c
index a58b51d..135c7c2 100644
--- a/test/ipedec.c
+++ b/test/ipedec.c
@@ -177,9 +177,10 @@ process_file(const char *filename, Options *opts)
             meta.n_rows = opts->rows;
 
         timer_stop (timer);
-        n_frames++;
 
         if (!error) {
+            n_frames++;
+
             if (opts->verbose) {
                 printf("Status for frame %i\n", n_frames);
                 print_meta_data (&meta);
-- 
cgit v1.2.3