The string "\"OTIO_SCHEMA\":" is 14 characters and not 15. Checking for
15 characters would also check for the final '\0', which does not exist
in any otio file as the string is the key of a JSON map.
if (!tmp)
return;
- data = (const gchar *) gst_type_find_peek (tf, tmp - data, 15);
+ data = (const gchar *) gst_type_find_peek (tf, tmp - data, 14);
if (!data)
return;
- if (memcmp (data, "\"OTIO_SCHEMA\":", 15) == 0) {
+ if (memcmp (data, "\"OTIO_SCHEMA\":", 14) == 0) {
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, OTIO_CAPS);
}
}