ALT Linux repos
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
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)