projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1f324
)
typefind: use g_ascii_strncasecmp() instead of strncasecmp()
author
David Hoyt
<dhoyt@llnl.gov>
Mon, 15 Mar 2010 18:45:13 +0000
(18:45 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Mon, 15 Mar 2010 18:45:13 +0000
(18:45 +0000)
g_ascii_strncasecmp() is more portable and likely more robust as
well (with random binary data as input).
Fixes #612845.
gst/typefind/gsttypefindfunctions.c
patch
|
blob
|
history
diff --git
a/gst/typefind/gsttypefindfunctions.c
b/gst/typefind/gsttypefindfunctions.c
index
a15eb17
..
46b571a
100644
(file)
--- a/
gst/typefind/gsttypefindfunctions.c
+++ b/
gst/typefind/gsttypefindfunctions.c
@@
-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)