mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
typefinding: fix y4m caps
We need to specify the y4mversion field now. https://bugzilla.gnome.org/show_bug.cgi?id=696282
This commit is contained in:
parent
383f58b0ed
commit
c7855b5505
1 changed files with 16 additions and 2 deletions
|
@ -4742,6 +4742,20 @@ degas_type_find (GstTypeFind * tf, gpointer private)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*** y4m ***/
|
||||||
|
|
||||||
|
static void
|
||||||
|
y4m_typefind (GstTypeFind * tf, gpointer private)
|
||||||
|
{
|
||||||
|
const guint8 *data;
|
||||||
|
|
||||||
|
data = gst_type_find_peek (tf, 0, 10);
|
||||||
|
if (data != NULL && memcmp (data, "YUV4MPEG2 ", 10) == 0) {
|
||||||
|
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY,
|
||||||
|
"application/x-yuv4mpeg", "y4mversion", G_TYPE_INT, 2, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*** DVD ISO images (looks like H.264, see #674069) ***/
|
/*** DVD ISO images (looks like H.264, see #674069) ***/
|
||||||
static void
|
static void
|
||||||
dvdiso_type_find (GstTypeFind * tf, gpointer private)
|
dvdiso_type_find (GstTypeFind * tf, gpointer private)
|
||||||
|
@ -5216,8 +5230,8 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_TYPE_FIND_LIKELY);
|
GST_TYPE_FIND_LIKELY);
|
||||||
TYPE_FIND_REGISTER (plugin, "image/vnd.wap.wbmp", GST_RANK_MARGINAL,
|
TYPE_FIND_REGISTER (plugin, "image/vnd.wap.wbmp", GST_RANK_MARGINAL,
|
||||||
wbmp_typefind, NULL, NULL, NULL, NULL);
|
wbmp_typefind, NULL, NULL, NULL, NULL);
|
||||||
TYPE_FIND_REGISTER_START_WITH (plugin, "application/x-yuv4mpeg",
|
TYPE_FIND_REGISTER (plugin, "application/x-yuv4mpeg", GST_RANK_SECONDARY,
|
||||||
GST_RANK_SECONDARY, "y4m", "YUV4MPEG2 ", 10, GST_TYPE_FIND_LIKELY);
|
y4m_typefind, NULL, NULL, NULL, NULL);
|
||||||
TYPE_FIND_REGISTER (plugin, "image/x-icon", GST_RANK_MARGINAL,
|
TYPE_FIND_REGISTER (plugin, "image/x-icon", GST_RANK_MARGINAL,
|
||||||
windows_icon_typefind, NULL, NULL, NULL, NULL);
|
windows_icon_typefind, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue