tools/ffeval: print computed value even in case of error
authorStefano Sabatini <stefasab@gmail.com>
Fri, 4 Jul 2014 14:39:29 +0000 (16:39 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 5 Jul 2014 09:48:24 +0000 (11:48 +0200)
This is useful for debugging purposes.

tools/ffeval.c

index 66b1032..944f374 100644 (file)
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
                 if (echo)
                     fprintf(outfile, "%s ", buf);
                 if (ret >= 0) fprintf(outfile, "%s%f\n", prompt, d);
-                else          fprintf(outfile, "%s%s\n", prompt, av_err2str(ret));
+                else          fprintf(outfile, "%s%f (%s)\n", prompt, d, av_err2str(ret));
             }
             count = 0;
         } else {