 -        "/usr/local/lib64/frei0r-1/",
 -        "/usr/lib64/frei0r-1/"
 -    };
-+    char* const * frei0r_pathlist = get_feri0r_pathlist(ctx);
++    char* const * frei0r_pathlist = get_frei0r_pathlist(ctx);
 +    int pathlist_count = 0;
  
      if (!dl_name) {

+  return pathlist;
+}
+#else
+static const char* const * get_feri0r_pathlist(AVFilterContext *ctx)
+{
+    static const char* const pathlist[] = {
+        "/usr/local/lib/frei0r-1/",

 }
 
+#ifdef _WIN32
+static const char* const * get_frei0r_pathlist(AVFilterContext *ctx)
+{
+    static char exe_path[PATH_MAX*10];
+    static const char* const pathlist[] = {
