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

This is useful for debugging purposes.
This commit is contained in:
Stefano Sabatini 2014-07-04 16:39:29 +02:00
parent 85eabd748b
commit 60f162946f

View File

@ -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 {