typefindfunctions: Fix otio typefinder detecting anything with curly braces at the start
memcmp() returns 0 (aka FALSE) on match and a difference otherwise. Previously the typefinder was matching on anything but otio files that happened to have some curly braces in the beginning of the file. Fixes a false positive with a MOV file.
This commit is contained in:
parent
fef4717770
commit
fa91783833
@ -759,7 +759,7 @@ otio_type_find (GstTypeFind * tf, gpointer unused)
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
if (memcmp (data, "\"OTIO_SCHEMA\":", 15)) {
|
||||
if (memcmp (data, "\"OTIO_SCHEMA\":", 15) == 0) {
|
||||
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, OTIO_CAPS);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user