lavfi/frei0r: fix crash when parameters are not set.
authorClément Bœsch <ubitux@gmail.com>
Fri, 3 May 2013 15:03:12 +0000 (17:03 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 3 May 2013 15:08:33 +0000 (17:08 +0200)
libavfilter/vf_frei0r.c

index 399f09e..345509b 100644 (file)
@@ -141,6 +141,9 @@ static int set_params(AVFilterContext *ctx, const char *params)
     Frei0rContext *frei0r = ctx->priv;
     int i;
 
+    if (!params)
+        return 0;
+
     for (i = 0; i < frei0r->plugin_info.num_params; i++) {
         f0r_param_info_t info;
         char *param;