lavfi/aevalsrc: initialize pointer to expression to NULL

Fix crash in case of expression parsing failure.
This commit is contained in:
Stefano Sabatini 2013-11-21 23:13:16 +01:00
parent 616da59542
commit 98786aa2f0

View File

@ -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)