]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/eval.c
mjpeg: return proper error code
[ffmpeg] / libavutil / eval.c
index 0ca7472ffdbb9e5709c73d05df3f923191ed6154..72f976ca4b02f2e457c9f6c086b0d8bbee3d5f7d 100644 (file)
  * see http://joe.hotchkiss.com/programming/eval/eval.html
  */
 
+#include "attributes.h"
 #include "avutil.h"
 #include "common.h"
 #include "eval.h"
 #include "log.h"
 #include "mathematics.h"
 #include "avstring.h"
+#include "timer.h"
 
 typedef struct Parser {
     const AVClass *class;
@@ -350,7 +352,7 @@ static int parse_dB(AVExpr **e, Parser *p, int *sign)
        for example, -3dB is not the same as -(3dB) */
     if (*p->s == '-') {
         char *next;
-        strtod(p->s, &next);
+        double av_unused ignored = strtod(p->s, &next);
         if (next != p->s && next[0] == 'd' && next[1] == 'B') {
             *sign = 0;
             return parse_primary(e, p);