mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue