mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
Make the video/avi caps for RIFF/AVI a bit more specific.
Original commit message from CVS: Make the video/avi caps for RIFF/AVI a bit more specific.
This commit is contained in:
parent
f4628dcb13
commit
d5217cf68c
2 changed files with 8 additions and 4 deletions
|
@ -67,7 +67,7 @@ GST_PADTEMPLATE_FACTORY (sink_templ,
|
||||||
GST_CAPS_NEW (
|
GST_CAPS_NEW (
|
||||||
"avidecoder_sink",
|
"avidecoder_sink",
|
||||||
"video/avi",
|
"video/avi",
|
||||||
NULL
|
"RIFF", GST_PROPS_STRING ("AVI")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -304,7 +304,9 @@ avi_typefind (GstBuffer *buf,
|
||||||
if (strncmp (&data[0], "RIFF", 4)) return NULL;
|
if (strncmp (&data[0], "RIFF", 4)) return NULL;
|
||||||
if (strncmp (&data[8], "AVI ", 4)) return NULL;
|
if (strncmp (&data[8], "AVI ", 4)) return NULL;
|
||||||
|
|
||||||
new = gst_caps_new ("avi_typefind","video/avi", NULL);
|
new = GST_CAPS_NEW ("avi_typefind",
|
||||||
|
"video/avi",
|
||||||
|
"RIFF", GST_PROPS_STRING ("AVI"));
|
||||||
|
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ GST_PADTEMPLATE_FACTORY (sink_templ,
|
||||||
GST_CAPS_NEW (
|
GST_CAPS_NEW (
|
||||||
"avidemux_sink",
|
"avidemux_sink",
|
||||||
"video/avi",
|
"video/avi",
|
||||||
NULL
|
"RIFF", GST_PROPS_STRING ("AVI")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -204,7 +204,9 @@ avi_typefind (GstBuffer *buf,
|
||||||
if (GUINT32_FROM_LE (((guint32 *)data)[2]) != GST_RIFF_RIFF_AVI)
|
if (GUINT32_FROM_LE (((guint32 *)data)[2]) != GST_RIFF_RIFF_AVI)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
new = gst_caps_new ("avi_typefind","video/avi", NULL);
|
new = GST_CAPS_NEW ("avi_typefind",
|
||||||
|
"video/avi",
|
||||||
|
"RIFF", GST_PROPS_STRING ("AVI"));
|
||||||
|
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue