-static const char * sub_exts[] = { "utf", "utf8", "utf-8", "sub", "srt", "smi", "txt", "ssa", "idx", NULL };
-/* extensions from unsupported types */
-/* rt, aqt, jss, js, ass */
-
-static void strcpy_trim( char *d, char *s )
+static const char const sub_exts[][6] = {
+ "idx", "sub", "srt",
+ "ssa", "ass", "smi",
+ "utf", "utf8", "utf-8",
+ "rt", "aqt", "txt",
+ "usf", "jss", "cdg",
+ "psb", "mpsub","mpl2",
+ "pjs", "dks", "stl",
+ ""
+};
+
+static void strcpy_trim( char *d, const char *s )