From bbb86717b303a3e4c0809d3cc6fb55580766a17e Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 5 Dec 2014 02:15:09 +0000 Subject: [PATCH] vf_frei0r: do not increment string if it reached the end Bug-Id: 778 CC: libav-stable@libav.org --- libavfilter/vf_frei0r.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)