aboutsummaryrefslogtreecommitdiff
path: root/libavutil/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/eval.c')
-rw-r--r--libavutil/eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c
index ea318560de..1dfcbef7bb 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -692,6 +692,10 @@ int av_expr_parse(AVExpr **expr, const char *s,
goto end;
}
e->var= av_mallocz(sizeof(double) *VARS);
+ if (!e->var) {
+ ret = AVERROR(ENOMEM);
+ goto end;
+ }
*expr = e;
e = NULL;
end: