Commit 02a6ee51 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_frei0r: fix out of array read

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d4dc6734
...@@ -151,7 +151,8 @@ static int set_params(AVFilterContext *ctx, const char *params) ...@@ -151,7 +151,8 @@ static int set_params(AVFilterContext *ctx, const char *params)
if (*params) { if (*params) {
if (!(param = av_get_token(&params, "|"))) if (!(param = av_get_token(&params, "|")))
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
params++; /* skip ':' */ if (*params)
params++; /* skip ':' */
ret = set_param(ctx, info, i, param); ret = set_param(ctx, info, i, param);
av_free(param); av_free(param);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment