From 4dd36df4f7bbc28abbf96700229254bbdf13e6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 6 May 2013 23:53:01 +0100 Subject: [PATCH] codecmap: add mapping for WMA Lossless Only 16 bits is supported for now though. --- ext/libav/gstavcodecmap.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index cac15eec51..a866492423 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -1096,7 +1096,14 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id, "wmaversion", G_TYPE_INT, 3, NULL); break; } - + 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); + break; + } case CODEC_ID_WMAVOICE: { caps =