diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:00:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:00:34 +0200 |
commit | 989c91b5042c19c9914a3b205b1ca6e1598c66ba (patch) | |
tree | aadedc5c8ad19a4fc64abd53a80bdf018b309106 /libavfilter/asrc_aevalsrc.c | |
parent | 4e4ae2f82caacd03fe936e5553c2e8f70ee109e9 (diff) | |
download | ffmpeg-989c91b5042c19c9914a3b205b1ca6e1598c66ba.tar.gz |
asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
Fixes CID733842
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/asrc_aevalsrc.c')
-rw-r--r-- | libavfilter/asrc_aevalsrc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c index 71eadfcccc..c8b5e02700 100644 --- a/libavfilter/asrc_aevalsrc.c +++ b/libavfilter/asrc_aevalsrc.c @@ -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; |