From: Sebastian Dröge Date: Wed, 16 Nov 2016 15:06:54 +0000 (+0200) Subject: av: Enable IVF demuxer (and muxer) X-Git-Tag: 1.19.3~499^2~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac4a47bacbcfd62e6330fc6b79c4456bfaf4511b;p=platform%2Fupstream%2Fgstreamer.git av: Enable IVF demuxer (and muxer) It works and is a quite unimportant format, we should get rid of our parser to reduce the amount of code to maintain. --- diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index c67c1f0..5cd430a 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -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")) { diff --git a/ext/libav/gstavdemux.c b/ext/libav/gstavdemux.c index dfc6bc4..a5bb02c 100644 --- a/ext/libav/gstavdemux.c +++ b/ext/libav/gstavdemux.c @@ -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);