Commit 8ff23f0e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5b097399'

* commit '5b097399':
  eval: Explicitly ignore return value of strtod() in parse_db()

Conflicts:
	libavutil/eval.c

See: 3cd9849dMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 2655c1ac 5b097399
......@@ -27,6 +27,7 @@
*/
#include <float.h>
#include "attributes.h"
#include "avutil.h"
#include "common.h"
#include "eval.h"
......@@ -487,7 +488,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;
double av_unused v = 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);
......
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