Skip to content
Snippets Groups Projects
Commit 989c91b5 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()


Fixes CID733842
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 4e4ae2f8
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,12 @@ static int init(AVFilterContext *ctx, const char *args)
eval->class = &aevalsrc_class;
av_opt_set_defaults(eval);
if (!args1) {
av_log(ctx, AV_LOG_ERROR, "Argument is empty\n");
ret = args ? AVERROR(ENOMEM) : AVERROR(EINVAL);
goto end;
}
/* parse expressions */
buf = args1;
i = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment