vf_frei0r: do not increment string if it reached the end

Bug-Id: 778
CC: libav-stable@libav.org
This commit is contained in:
Vittorio Giovara 2014-12-05 02:15:09 +00:00
parent 90411b333d
commit d0b224054f
1 changed files with 2 additions and 1 deletions

View File

@ -149,6 +149,7 @@ static int set_params(AVFilterContext *ctx, const char *params)
if (*params) {
if (!(param = av_get_token(&params, "|")))
return AVERROR(ENOMEM);
if (*params)
params++; /* skip ':' */
ret = set_param(ctx, info, i, param);
av_free(param);