Commit 60f16294 authored by Stefano Sabatini's avatar Stefano Sabatini

tools/ffeval: print computed value even in case of error

This is useful for debugging purposes.
parent 85eabd74
...@@ -124,7 +124,7 @@ int main(int argc, char **argv) ...@@ -124,7 +124,7 @@ int main(int argc, char **argv)
if (echo) if (echo)
fprintf(outfile, "%s ", buf); fprintf(outfile, "%s ", buf);
if (ret >= 0) fprintf(outfile, "%s%f\n", prompt, d); 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; count = 0;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment