Sisyphus repository
Last update: 26 october 2021 | SRPMs: 17374 | Visits: 22162897
en ru br
ALT Linux repos
S:2.10.0-alt1
5.0: 2.6.1-alt4
4.1: 2.6.1-alt4
4.0: 2.0-alt3.20040923
3.0: 2.0-alt1.2_20040923

Group :: Sound
RPM: faad

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: faad2-alt-fix-no-ext-segfault.patch
Download


diff --git a/faad2/plugins/xmms/src/libmp4.c b/faad2/plugins/xmms/src/libmp4.c
index 97e8d12..ce18ba0 100755
--- a/faad2/plugins/xmms/src/libmp4.c
+++ b/faad2/plugins/xmms/src/libmp4.c
@@ -123,19 +123,18 @@ static void mp4_stop(void)
 
 static int	mp4_isFile(char *filename)
 {
-  if(filename){
-    gchar*	extention;
-
-    extention = strrchr(filename, '.');
-    if(extention &&
-       (!strncasecmp(extention, ".mp4", 4) ||	// official extention
-	!strncasecmp(extention, ".m4a", 4) ||	// Apple mp4 extention
-	!strncasecmp(extention, ".aac", 4)	// old MPEG2/4-AAC extention
-	)){
-      return (1);
+    gchar *extension;
+
+    if(filename){
+        extension = strrchr(filename, '.');
+        if (extension &&
+                (!strcasecmp(extension, ".mp4") ||  // official extension
+                 !strcasecmp(extension, ".m4a") ||  // Apple mp4 extension
+                 !strcasecmp(extension, ".aac")     // an old MPEG2/4-AAC extension
+                )
+           ) return TRUE;
     }
-  }
-  return(0);
+    return FALSE;
 }
 
 static void	mp4_about(void)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin