gstffmpegcodecmap: Add mapping for Windows Media Speech

This commit is contained in:
Edward Hervey 2010-02-18 13:24:39 +01:00
parent 210a066205
commit 9c497b6010

View file

@ -846,6 +846,12 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
break;
}
case CODEC_ID_WMAVOICE:
{
caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-wms", NULL);
break;
}
case CODEC_ID_MACE3:
case CODEC_ID_MACE6:
{
@ -2868,6 +2874,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
}
if (id != CODEC_ID_NONE)
audio = TRUE;
} else if (!strcmp (mimetype, "audio/x-wms")) {
id = CODEC_ID_WMAVOICE;
audio = TRUE;
} else if (!strcmp (mimetype, "audio/x-ac3")) {
id = CODEC_ID_AC3;
audio = TRUE;