mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df'
* commit '5b097399baa2e38cc513939cfab3a9b6fdbc33df':
eval: Explicitly ignore return value of strtod() in parse_db()
Conflicts:
libavutil/eval.c
See: 3cd9849d9c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8ff23f0e3c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user