projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127202d
)
codecmap: add mapping for WMA Lossless
author
Tim-Philipp Müller
<tim@centricular.net>
Mon, 6 May 2013 22:53:01 +0000
(23:53 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Mon, 6 May 2013 22:53:01 +0000
(23:53 +0100)
Only 16 bits is supported for now though.
ext/libav/gstavcodecmap.c
patch
|
blob
|
history
diff --git
a/ext/libav/gstavcodecmap.c
b/ext/libav/gstavcodecmap.c
index cac15eec51864cf4f9f9d3879afc97cf118d9b0c..a8664924238e59e38aa8b5c009d38cc3e4df7704 100644
(file)
--- 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 =