Mercurial > audlegacy
changeset 31:b1dcf238b2ba trunk
[svn] More AAC detection fixes c/o MSameer.
author | nenolod |
---|---|
date | Tue, 25 Oct 2005 22:09:36 -0700 |
parents | 8ff63455cf71 |
children | 8aee6a5bcc70 |
files | Input/aac/src/libmp4.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Input/aac/src/libmp4.c Tue Oct 25 21:51:01 2005 -0700 +++ b/Input/aac/src/libmp4.c Tue Oct 25 22:09:36 2005 -0700 @@ -117,10 +117,10 @@ if(filename){ ext = strrchr(filename, '.'); - if (!strncasecmp(ext, ".mp4", 4) || // official extention + if (ext && (!strncasecmp(ext, ".mp4", 4) || // official extention !strncasecmp(ext, ".m4a", 4) || // Apple mp4 extention !strncasecmp(ext, ".aac", 4) // old MPEG2/4-AAC extention - ){ + )){ return (1); } }