# HG changeset patch # User nemo # Date 1143156760 28800 # Node ID 5d3878484c4f948629fbcf0fd9da2987f935122d # Parent cfa2d55986fdb05ece55eac8eca5e1a9681f2ac4 [svn] memcmp since magic isn't a string diff -r cfa2d55986fd -r 5d3878484c4f Plugins/Input/aac/src/libmp4.c --- a/Plugins/Input/aac/src/libmp4.c Wed Mar 22 16:58:39 2006 -0800 +++ b/Plugins/Input/aac/src/libmp4.c Thu Mar 23 15:32:40 2006 -0800 @@ -196,7 +196,7 @@ vfs_fclose(file); return 1; } - if (!strncmp(magic, "ID3", 3)) { // ID3 tag bolted to the front, obfuscated magic bytes + if (!memcmp(magic, "ID3", 3)) { // ID3 tag bolted to the front, obfuscated magic bytes vfs_fclose(file); if (extension &&( !strcasecmp(extension, ".mp4") || // official extension @@ -208,7 +208,7 @@ return 0; } vfs_fread(magic, 1, 4, file); - if (!strncasecmp(magic, "ftyp", 4)) { + if (!memcmp(magic, "ftyp", 4)) { vfs_fclose(file); return 1; }