# HG changeset patch # User nenolod # Date 1130302007 25200 # Node ID a4513169b27e4272c7ac90a4a30fff10331a3d93 # Parent d160ae2251e9ae36134cd1741ff66d1f4df8ceb7 [svn] Possible crash fix. diff -r d160ae2251e9 -r a4513169b27e Input/aac/src/libmp4.c --- a/Input/aac/src/libmp4.c Tue Oct 25 21:26:50 2005 -0700 +++ b/Input/aac/src/libmp4.c Tue Oct 25 21:46:47 2005 -0700 @@ -113,14 +113,13 @@ static int mp4_isFile(char *filename) { - if(filename){ - gchar* extention; + char *ext; - extention = strrchr(filename, '.'); - if (extention && - !strcasecmp(extention, ".mp4") || // official extention - !strcasecmp(extention, ".m4a") || // Apple mp4 extention - !strcasecmp(extention, ".aac") // old MPEG2/4-AAC extention + if(filename){ + ext = strrchr(filename, '.'); + if (!strncasecmp(filename, ".mp4", 3) || // official extention + !strncasecmp(filename, ".m4a", 3) || // Apple mp4 extention + !strncasecmp(filename, ".aac", 3) // old MPEG2/4-AAC extention ){ return (1); }