vf_frei0r: do not increment string if it reached the end
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 5 Dec 2014 02:15:09 +0000 (02:15 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 8 Dec 2014 13:30:38 +0000 (13:30 +0000)
Bug-Id: 778
CC: libav-stable@libav.org
libavfilter/vf_frei0r.c

index 771443d..0122b8d 100644 (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)