 -        "/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/",

+    const char * rel_to_exedir = "../lib/frei0r-1/";
+
+    get_executable_path (NULL, &exe_path[0], sizeof (exe_path) / sizeof (exe_path[0]));
+    av_log(ctx, AV_LOG_DEBUG, "Running Windows customization of get_frei0r_pathlist(), good.");
+    av_log(ctx, AV_LOG_DEBUG, "executable path is %s\n", exe_path);
+
+    if (strrchr (exe_path, '/') != NULL) {
