Browse Source

vf_frei0r: do not increment string if it reached the end

Bug-Id: 778
CC: libav-stable@libav.org
tags/n2.6
Vittorio Giovara 11 years ago
parent
commit
d0b224054f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/vf_frei0r.c

+ 2
- 1
libavfilter/vf_frei0r.c View File

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


Loading…
Cancel
Save