av: Enable IVF demuxer (and muxer)
authorSebastian Dröge <sebastian@centricular.com>
Wed, 16 Nov 2016 15:06:54 +0000 (17:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Nov 2016 15:06:54 +0000 (17:06 +0200)
It works and is a quite unimportant format, we should get rid of our
parser to reduce the amount of code to maintain.

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

index c67c1f0..5cd430a 100644 (file)
@@ -3382,6 +3382,8 @@ gst_ffmpeg_formatid_to_caps (const gchar * format_name)
     caps = gst_caps_new_empty_simple ("video/x-4xm");
   } else if (!strcmp (format_name, "matroska")) {
     caps = gst_caps_new_empty_simple ("video/x-matroska");
+  } else if (!strcmp (format_name, "ivf")) {
+    caps = gst_caps_new_empty_simple ("video/x-ivf");
   } else if (!strcmp (format_name, "mp3")) {
     caps = gst_caps_new_empty_simple ("application/x-id3");
   } else if (!strcmp (format_name, "flic")) {
index dfc6bc4..a5bb02c 100644 (file)
@@ -2028,8 +2028,9 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
         !strcmp (in_plugin->name, "swf") ||
         !strcmp (in_plugin->name, "voc") ||
         !strcmp (in_plugin->name, "pva") ||
-        !strcmp (in_plugin->name, "gif") || !strcmp (in_plugin->name, "vc1test")
-        )
+        !strcmp (in_plugin->name, "gif") ||
+        !strcmp (in_plugin->name, "vc1test") ||
+        !strcmp (in_plugin->name, "ivf"))
       register_typefind_func = FALSE;
 
     /* Set the rank of demuxers known to work to MARGINAL.
@@ -2066,7 +2067,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
         !strcmp (in_plugin->name, "yuv4mpegpipe") ||
         !strcmp (in_plugin->name, "pva") ||
         !strcmp (in_plugin->name, "mpc") ||
-        !strcmp (in_plugin->name, "mpc8") || !strcmp (in_plugin->name, "gif"))
+        !strcmp (in_plugin->name, "mpc8") ||
+        !strcmp (in_plugin->name, "gif") || !strcmp (in_plugin->name, "ivf"))
       rank = GST_RANK_MARGINAL;
     else {
       GST_DEBUG ("ignoring %s", in_plugin->name);