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)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 12 Jan 2015 22:18:01 +0000 (23:18 +0100)
Bug-Id: 778
CC: libav-stable@libav.org
libavfilter/vf_frei0r.c

index 771443d02e55a0bde02e90d07062c8ae308aec19..0122b8d905f384b674ce8f767a909905ac59a30b 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)