Add support for musepack (mpc) sv8 audio
authorJames Smith <smithjd15@gmail.com>
Wed, 22 Jul 2015 08:44:27 +0000 (09:44 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 22 Jul 2015 08:44:27 +0000 (09:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=732682

ext/libav/gstavcodecmap.c
ext/libav/gstavdemux.c

index 5895587..23bf04e 100644 (file)
@@ -3248,6 +3248,8 @@ gst_ffmpeg_formatid_to_caps (const gchar * format_name)
         "y4mversion", G_TYPE_INT, 2, NULL);
   } else if (!strcmp (format_name, "mpc")) {
     caps = gst_caps_from_string ("audio/x-musepack, streamversion = (int) 7");
+  } else if (!strcmp (format_name, "mpc8")) {
+    caps = gst_caps_from_string ("audio/x-musepack, streamversion = (int) 8");
   } else if (!strcmp (format_name, "vqf")) {
     caps = gst_caps_from_string ("audio/x-vqf");
   } else if (!strcmp (format_name, "nsv")) {
index 37eaabb..2ff1318 100644 (file)
@@ -2008,7 +2008,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
         !strcmp (in_plugin->name, "4xm") ||
         !strcmp (in_plugin->name, "yuv4mpegpipe") ||
         !strcmp (in_plugin->name, "pva") ||
-        !strcmp (in_plugin->name, "mpc") || !strcmp (in_plugin->name, "gif"))
+        !strcmp (in_plugin->name, "mpc") ||
+        !strcmp (in_plugin->name, "mpc8") || !strcmp (in_plugin->name, "gif"))
       rank = GST_RANK_MARGINAL;
     else {
       GST_DEBUG ("ignoring %s", in_plugin->name);