mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
ffmpegcodecmap: Further specify allowed rates for G722 and G726
This commit is contained in:
parent
93b333cfea
commit
b05352beee
1 changed files with 13 additions and 1 deletions
|
@ -398,9 +398,21 @@ gst_ff_aud_caps_new (AVCodecContext * context, enum CodecID codec_id,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CODEC_ID_ADPCM_G722:
|
case CODEC_ID_ADPCM_G722:
|
||||||
case CODEC_ID_ADPCM_G726:
|
{
|
||||||
|
const static gint l_rates[] = { 16000 };
|
||||||
|
n_rates = G_N_ELEMENTS (l_rates);
|
||||||
|
rates = l_rates;
|
||||||
maxchannels = 1;
|
maxchannels = 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
case CODEC_ID_ADPCM_G726:
|
||||||
|
{
|
||||||
|
const static gint l_rates[] = { 8000 };
|
||||||
|
n_rates = G_N_ELEMENTS (l_rates);
|
||||||
|
rates = l_rates;
|
||||||
|
maxchannels = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case CODEC_ID_ADPCM_SWF:
|
case CODEC_ID_ADPCM_SWF:
|
||||||
{
|
{
|
||||||
const static gint l_rates[] = { 11025, 22050, 44100 };
|
const static gint l_rates[] = { 11025, 22050, 44100 };
|
||||||
|
|
Loading…
Reference in a new issue