diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-05 02:15:09 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-08 13:30:38 +0000 |
commit | d0b224054f13bf57244694a3ff092cfef68d66f9 (patch) | |
tree | 939d6f856baa5dcb8767f661ffe0786ac37624b5 | |
parent | 90411b333d6b6bb69d8937117b9250785730dc53 (diff) | |
download | ffmpeg-d0b224054f13bf57244694a3ff092cfef68d66f9.tar.gz |
vf_frei0r: do not increment string if it reached the end
Bug-Id: 778
CC: libav-stable@libav.org
-rw-r--r-- | libavfilter/vf_frei0r.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index 771443d02e..0122b8d905 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -149,7 +149,8 @@ static int set_params(AVFilterContext *ctx, const char *params) if (*params) { if (!(param = av_get_token(¶ms, "|"))) return AVERROR(ENOMEM); - params++; /* skip ':' */ + if (*params) + params++; /* skip ':' */ ret = set_param(ctx, info, i, param); av_free(param); if (ret < 0) |