diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2008-09-03 12:23:44 +0000 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2008-09-03 12:23:44 +0000 |
commit | ec6afbd321828ebda3ac66f5acc85f3b075649e8 (patch) | |
tree | 29aec87e0fb8b737be6a1fe3696cef9100d7e706 | |
parent | 1875564b65d589b86c80417dfb553c31eef142f0 (diff) |
gst/typefind/gsttypefindfunctions.c: Typefind video/mj2 and image/jp2 ISO JPEG2000 mime types.
Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (plugin_init):
Typefind video/mj2 and image/jp2 ISO JPEG2000 mime types.
Fixes #550638.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 8 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2008-09-03 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> + + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + Typefind video/mj2 and image/jp2 ISO JPEG2000 mime types. + Fixes #550638. + 2008-09-03 Stefan Kost <ensonic@users.sf.net> * configure.ac: diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 071dc6d2..f642f948 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2954,6 +2954,8 @@ plugin_init (GstPlugin * plugin) static gchar *ogg_exts[] = { "anx", "ogg", "ogm", NULL }; static gchar *qt_exts[] = { "mov", NULL }; static gchar *qtif_exts[] = { "qif", "qtif", "qti", NULL }; + static gchar *mj2_exts[] = { "mj2", NULL }; + static gchar *jp2_exts[] = { "jp2", NULL }; static gchar *rm_exts[] = { "ra", "ram", "rm", "rmvb", NULL }; static gchar *swf_exts[] = { "swf", "swfl", NULL }; static gchar *utf8_exts[] = { "txt", NULL }; @@ -3085,6 +3087,12 @@ plugin_init (GstPlugin * plugin) qt_type_find, qt_exts, QT_CAPS, NULL, NULL); TYPE_FIND_REGISTER (plugin, "image/x-quicktime", GST_RANK_SECONDARY, qtif_type_find, qtif_exts, QTIF_CAPS, NULL, NULL); + TYPE_FIND_REGISTER_START_WITH (plugin, "image/jp2", GST_RANK_PRIMARY, + jp2_exts, "\000\000\000\014jP \015\012\207\012\000\000\000\024ftypjp2 ", + 24, GST_TYPE_FIND_MAXIMUM); + TYPE_FIND_REGISTER_START_WITH (plugin, "video/mj2", GST_RANK_PRIMARY, + mj2_exts, "\000\000\000\014jP \015\012\207\012\000\000\000\024ftypmjp2", + 24, GST_TYPE_FIND_MAXIMUM); TYPE_FIND_REGISTER (plugin, "text/html", GST_RANK_SECONDARY, html_type_find, html_exts, HTML_CAPS, NULL, NULL); |