mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
ffmpegcodecmap: Add mapping for SIPR
This commit is contained in:
parent
f345b8911c
commit
0fb014fdbe
1 changed files with 15 additions and 0 deletions
|
@ -1381,6 +1381,17 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
||||||
gst_ff_aud_caps_new (context, codec_id, "audio/x-nellymoser", NULL);
|
gst_ff_aud_caps_new (context, codec_id, "audio/x-nellymoser", NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CODEC_ID_SIPR:
|
||||||
|
{
|
||||||
|
caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-sipro", NULL);
|
||||||
|
if (context) {
|
||||||
|
gst_caps_set_simple (caps,
|
||||||
|
"leaf_size", G_TYPE_INT, context->block_align,
|
||||||
|
"bitrate", G_TYPE_INT, context->bit_rate, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case CODEC_ID_RA_144:
|
case CODEC_ID_RA_144:
|
||||||
case CODEC_ID_RA_288:
|
case CODEC_ID_RA_288:
|
||||||
case CODEC_ID_COOK:
|
case CODEC_ID_COOK:
|
||||||
|
@ -2322,6 +2333,7 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
|
||||||
case CODEC_ID_COOK:
|
case CODEC_ID_COOK:
|
||||||
case CODEC_ID_RA_288:
|
case CODEC_ID_RA_288:
|
||||||
case CODEC_ID_RA_144:
|
case CODEC_ID_RA_144:
|
||||||
|
case CODEC_ID_SIPR:
|
||||||
{
|
{
|
||||||
gint leaf_size;
|
gint leaf_size;
|
||||||
gint bitrate;
|
gint bitrate;
|
||||||
|
@ -3121,6 +3133,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
||||||
}
|
}
|
||||||
if (id != CODEC_ID_NONE)
|
if (id != CODEC_ID_NONE)
|
||||||
video = TRUE;
|
video = TRUE;
|
||||||
|
} else if (!strcmp (mimetype, "audio/x-sipro")) {
|
||||||
|
id = CODEC_ID_SIPR;
|
||||||
|
audio = TRUE;
|
||||||
} else if (!strcmp (mimetype, "audio/x-pn-realaudio")) {
|
} else if (!strcmp (mimetype, "audio/x-pn-realaudio")) {
|
||||||
gint raversion;
|
gint raversion;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue