From 72d0d288115e25fc21bfe0113d8cea7598cc08ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 6 Aug 2021 17:41:19 +0200 Subject: [PATCH] avdemux: add xwma support Add xwma tested with the media b8edfb1e970ed7892f35b34a1ef36fee_wma.wav from this ticket: http://trac.ffmpeg.org/ticket/9358 Part-of: --- docs/gst_plugins_cache.json | 31 +++++++++++++++++++++++++++++++ ext/libav/gstavdemux.c | 6 ++++++ 2 files changed, 37 insertions(+) diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index dbe88b7d3e..534d57ccd9 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -25882,6 +25882,37 @@ "rank": "marginal", "signals": {} }, + "avdemux_xwma": { + "author": "Wim Taymans , Ronald Bultje , Edward Hervey ", + "description": "libav Microsoft xWMA demuxer", + "hierarchy": [ + "avdemux_xwma", + "GstElement", + "GstObject", + "GInitiallyUnowned", + "GObject" + ], + "klass": "Codec/Demuxer", + "long-name": "libav Microsoft xWMA demuxer", + "pad-templates": { + "audio_%%u": { + "caps": "ANY", + "direction": "src", + "presence": "sometimes" + }, + "sink": { + "caps": "application/x-gst-av-xwma:\n", + "direction": "sink", + "presence": "always" + }, + "video_%%u": { + "caps": "ANY", + "direction": "src", + "presence": "sometimes" + } + }, + "rank": "marginal" + }, "avdemux_yuv4mpegpipe": { "author": "Wim Taymans , Ronald Bultje , Edward Hervey ", "description": "libav YUV4MPEG pipe demuxer", diff --git a/ext/libav/gstavdemux.c b/ext/libav/gstavdemux.c index 80a0920f14..37de3faffb 100644 --- a/ext/libav/gstavdemux.c +++ b/ext/libav/gstavdemux.c @@ -2107,6 +2107,11 @@ gst_ffmpegdemux_register (GstPlugin * plugin) /* Set the rank of demuxers known to work to MARGINAL. * Set demuxers for which we already have another implementation to NONE * Set All others to NONE*/ + /** + * element-avdemux_xwma + * + * Since: 1.20 + */ if (!strcmp (in_plugin->name, "wsvqa") || !strcmp (in_plugin->name, "wsaud") || !strcmp (in_plugin->name, "wc3movie") || @@ -2134,6 +2139,7 @@ gst_ffmpegdemux_register (GstPlugin * plugin) !strcmp (in_plugin->name, "daud") || !strcmp (in_plugin->name, "avs") || !strcmp (in_plugin->name, "aiff") || + !strcmp (in_plugin->name, "xwma") || !strcmp (in_plugin->name, "4xm") || !strcmp (in_plugin->name, "yuv4mpegpipe") || !strcmp (in_plugin->name, "pva") ||