mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
Fixes CID733842 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4e4ae2f82c
commit
989c91b504
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user