asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
Fixes CID733842 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 989c91b5042c19c9914a3b205b1ca6e1598c66ba) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0b9d464348
commit
ba10ea845f
@ -95,6 +95,12 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
eval->class = &eval_class;
|
eval->class = &eval_class;
|
||||||
av_opt_set_defaults(eval);
|
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 */
|
/* parse expressions */
|
||||||
buf = args1;
|
buf = args1;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user