summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.com>2016-09-26 20:06:54 -0400
committerTim-Philipp Müller <tim@centricular.com>2020-09-30 01:13:51 +0100
commit1721eed5ba6dc6a6d1da5da502a3e32a4ead8cbc (patch)
treeda84db99006fe9e6f6744ba6f82b0486e1e7c59a
parent6c4a3b6a2e9387fb5e058764c16c1228b912bad8 (diff)
downloadgst-libav-1721eed5ba6dc6a6d1da5da502a3e32a4ead8cbc.tar.gz
avcodecmap: Enable 24 bit WMA Lossless decoding
This now works with not so recent ffmpeg. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/95>
-rw-r--r--docs/gst_plugins_cache.json2
-rw-r--r--ext/libav/gstavcodecmap.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json
index afac352..016fbca 100644
--- a/docs/gst_plugins_cache.json
+++ b/docs/gst_plugins_cache.json
@@ -22978,7 +22978,7 @@
"long-name": "libav Windows Media Audio Lossless decoder",
"pad-templates": {
"sink": {
- "caps": "audio/x-wma:\n wmaversion: 4\n depth: 16\n",
+ "caps": "audio/x-wma:\n wmaversion: 4\n",
"direction": "sink",
"presence": "always"
},
diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c
index 16f1aba..4688530 100644
--- a/ext/libav/gstavcodecmap.c
+++ b/ext/libav/gstavcodecmap.c
@@ -1220,10 +1220,9 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
}
case AV_CODEC_ID_WMALOSSLESS:
{
- /* libav only supports a depth of 16 at the moment */
caps =
gst_ff_aud_caps_new (context, NULL, codec_id, encode, "audio/x-wma",
- "wmaversion", G_TYPE_INT, 4, "depth", G_TYPE_INT, 16, NULL);
+ "wmaversion", G_TYPE_INT, 4, NULL);
break;
}
case AV_CODEC_ID_WMAVOICE: