summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-05-06 23:53:01 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-05-06 23:53:01 +0100
commit4dd36df4f7bbc28abbf96700229254bbdf13e6de (patch)
treef4fced5f79f26084dce121c44ce2caf7e1f84b34
parent127202d6f65584891dabf92be031f0d170b0e7f1 (diff)
codecmap: add mapping for WMA Lossless
Only 16 bits is supported for now though.
-rw-r--r--ext/libav/gstavcodecmap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c
index cac15ee..a866492 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 =