Properly detects shn files with no seek tables at the end

Original commit message from CVS:
Properly detects shn files with no seek tables at the end
This commit is contained in:
Christophe Fergeau 2003-11-23 00:33:15 +00:00
parent d0348439af
commit b138134c9a

View file

@ -628,8 +628,11 @@ aiff_type_find (GstTypeFind *tf, gpointer unused)
static void
shn_type_find (GstTypeFind *tf, gpointer unused)
{
guint8 *data = gst_type_find_peek (tf, -8, 8);
guint8 *data = gst_type_find_peek (tf, 0, 4);
if (data && memcmp (data, "ajkg", 4) == 0) {
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, SHN_CAPS);
}
data = gst_type_find_peek (tf, -8, 8);
if (data && memcmp (data, "SHNAMPSK", 8) == 0) {
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, SHN_CAPS);
}