[FFmpeg-cvslog] tools/ffeval: print computed value even in case of error

Stefano Sabatini git at videolan.org
Sat Jul 5 11:52:53 CEST 2014


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Jul  4 16:39:29 2014 +0200| [60f162946f0927e624156e578161e6042c5299c6] | committer: Stefano Sabatini

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

This is useful for debugging purposes.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60f162946f0927e624156e578161e6042c5299c6
---

 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 {



More information about the ffmpeg-cvslog mailing list