From: Stefano Sabatini Date: Fri, 4 Jul 2014 14:39:29 +0000 (+0200) Subject: tools/ffeval: print computed value even in case of error X-Git-Tag: n2.3~216 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/60f162946f0927e624156e578161e6042c5299c6 tools/ffeval: print computed value even in case of error This is useful for debugging purposes. --- diff --git a/tools/ffeval.c b/tools/ffeval.c index 66b103294f..944f374727 100644 --- a/tools/ffeval.c +++ b/tools/ffeval.c @@ -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 {