[FFmpeg-devel] [PATCH] tools/ffeval: print computed value even in case of error
Stefano Sabatini
stefasab at gmail.com
Fri Jul 4 16:40:31 CEST 2014
This is useful for debugging purposes.
---
tools/ffeval.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/ffeval.c b/tools/ffeval.c
index 66b1032..944f374 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 {
--
1.8.3.2
More information about the ffmpeg-devel
mailing list