Commit 98786aa2 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/aevalsrc: initialize pointer to expression to NULL

Fix crash in case of expression parsing failure.
parent 616da595
......@@ -101,6 +101,7 @@ static av_cold int init(AVFilterContext *ctx)
ret = AVERROR(ENOMEM);
goto end;
}
eval->expr[eval->nb_channels-1] = NULL;
ret = av_expr_parse(&eval->expr[eval->nb_channels - 1], expr, var_names,
NULL, NULL, NULL, NULL, 0, ctx);
if (ret < 0)
......
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