mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
codecmap: Add mapping for g722
This commit is contained in:
parent
199c03a2e0
commit
a2a4ee93c4
1 changed files with 8 additions and 0 deletions
|
@ -1293,6 +1293,14 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
||||||
caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-alaw", NULL);
|
caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-alaw", NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CODEC_ID_ADPCM_G722:
|
||||||
|
caps = gst_ff_aud_caps_new (context, codec_id, "audio/G722", NULL);
|
||||||
|
if (context)
|
||||||
|
gst_caps_set_simple (caps,
|
||||||
|
"block_align", G_TYPE_INT, context->block_align,
|
||||||
|
"bitrate", G_TYPE_INT, context->bit_rate, NULL);
|
||||||
|
break;
|
||||||
|
|
||||||
case CODEC_ID_ADPCM_G726:
|
case CODEC_ID_ADPCM_G726:
|
||||||
{
|
{
|
||||||
/* the G726 decoder can also handle G721 */
|
/* the G726 decoder can also handle G721 */
|
||||||
|
|
Loading…
Reference in a new issue