OSDN Git Service

avfilter/vf_frei0r: fix out of array read
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 09:16:35 +0000 (11:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 09:16:35 +0000 (11:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_frei0r.c

index 8300176..67d25fb 100644 (file)
@@ -151,7 +151,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)