changeset 862:5d3878484c4f trunk

[svn] memcmp since magic isn't a string
author nemo
date Thu, 23 Mar 2006 15:32:40 -0800
parents cfa2d55986fd
children 25f42f39c44c
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
       }