Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37760683
en ru br
ALT Linux repos
S:2.6.0-alt0.5
5.0: 2.5.0-alt0.2
4.1: 2.5.0-alt0.2
4.0: 2.5.0-alt0.1
3.0: 2.3.1-alt1

Group :: Sound
RPM: moc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: moc-2.5.0-ffmpeg-mac-support.patch
Download


diff --git a/moc/decoder_plugins/ffmpeg/ffmpeg.c b/moc/decoder_plugins/ffmpeg/ffmpeg.c
index 9ecdd06..ec02b08 100644
--- a/moc/decoder_plugins/ffmpeg/ffmpeg.c
+++ b/moc/decoder_plugins/ffmpeg/ffmpeg.c
@@ -381,6 +381,8 @@ static void ffmpeg_get_name (const char *file, char buf[4])
 		strcpy (buf, "MP4");
 	else if (!strcasecmp (ext, "m4a"))
 		strcpy (buf, "M4A");
+	else if (!strcasecmp (ext, "ape"))
+		strcpy (buf, "APE");
 }
 
 static int ffmpeg_our_format_ext (const char *ext)
@@ -388,7 +390,8 @@ static int ffmpeg_our_format_ext (const char *ext)
 	return !strcasecmp (ext, "wma")
 		|| !strcasecmp (ext, "ra")
 		|| !strcasecmp (ext, "m4a")
-		|| !strcasecmp (ext, "mp4");
+		|| !strcasecmp (ext, "mp4")
+		|| !strcasecmp (ext, "ape");
 }
 
 static void ffmpeg_get_error (void *prv_data, struct decoder_error *error)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin