mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
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:
parent
d0348439af
commit
b138134c9a
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue