aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-12-05 02:15:09 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-12-08 13:30:38 +0000
commitd0b224054f13bf57244694a3ff092cfef68d66f9 (patch)
tree939d6f856baa5dcb8767f661ffe0786ac37624b5
parent90411b333d6b6bb69d8937117b9250785730dc53 (diff)
downloadffmpeg-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.c3
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(&params, "|")))
return AVERROR(ENOMEM);
- params++; /* skip ':' */
+ if (*params)
+ params++; /* skip ':' */
ret = set_param(ctx, info, i, param);
av_free(param);
if (ret < 0)