mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 12:19:52 +00:00
lavfi/aevalsrc: initialize pointer to expression to NULL
Fix crash in case of expression parsing failure.
This commit is contained in:
parent
616da59542
commit
98786aa2f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user