6b929c59fb
- Merge in a whole bunch of various fixes from upstream and add comments for the existing fixes which didn't have a comment in the patch. From Brad; OK sthen@
26 lines
972 B
Plaintext
26 lines
972 B
Plaintext
$OpenBSD: patch-src_libsputext_demux_sputext_c,v 1.5 2011/05/11 09:05:54 dcoppa Exp $
|
|
|
|
Add .ass extension to be recognized as subtitle file.
|
|
|
|
--- src/libsputext/demux_sputext.c.orig Mon May 9 20:52:27 2011
|
|
+++ src/libsputext/demux_sputext.c Mon May 9 20:54:23 2011
|
|
@@ -1386,7 +1386,8 @@ static demux_plugin_t *open_demux_plugin (demux_class_
|
|
(strncasecmp(ending, ".sub", 4) != 0) &&
|
|
(strncasecmp(ending, ".srt", 4) != 0) &&
|
|
(strncasecmp(ending, ".smi", 4) != 0) &&
|
|
- (strncasecmp(ending, ".ssa", 4) != 0))) {
|
|
+ (strncasecmp(ending, ".ssa", 4) != 0) &&
|
|
+ (strncasecmp(ending, ".ass", 4) != 0))) {
|
|
free (this);
|
|
return NULL;
|
|
}
|
|
@@ -1432,7 +1433,7 @@ static const char *get_demux_identifier (demux_class_t
|
|
}
|
|
|
|
static const char *get_demux_extensions (demux_class_t *this_gen) {
|
|
- return "asc txt sub srt smi ssa";
|
|
+ return "asc txt sub srt smi ssa ass";
|
|
}
|
|
|
|
static const char *get_demux_mimetypes (demux_class_t *this_gen) {
|