mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-27 14:31:01 +00:00
typefind: use g_ascii_strncasecmp() instead of strncasecmp()
g_ascii_strncasecmp() is more portable and likely more robust as well (with random binary data as input). Fixes #612845.
This commit is contained in:
parent
2e1f3242bf
commit
cfa8de336c
1 changed files with 2 additions and 2 deletions
|
@ -2477,8 +2477,8 @@ mod_type_find (GstTypeFind * tf, gpointer unused)
|
|||
}
|
||||
/* STM */
|
||||
if ((data = gst_type_find_peek (tf, 20, 8)) != NULL) {
|
||||
if (strncasecmp ((gchar *) data, "!Scream!", 8) == 0 ||
|
||||
strncasecmp ((gchar *) data, "BMOD2STM", 8) == 0) {
|
||||
if (g_ascii_strncasecmp ((gchar *) data, "!Scream!", 8) == 0 ||
|
||||
g_ascii_strncasecmp ((gchar *) data, "BMOD2STM", 8) == 0) {
|
||||
guint8 *id, *stmtype;
|
||||
|
||||
if ((id = gst_type_find_peek (tf, 28, 1)) == NULL)
|
||||
|
|
Loading…
Reference in a new issue