From ac4a47bacbcfd62e6330fc6b79c4456bfaf4511b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Nov 2016 17:06:54 +0200 Subject: [PATCH] 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. --- ext/libav/gstavcodecmap.c | 2 ++ ext/libav/gstavdemux.c | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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); -- 2.7.4