ffmpegcodecmap: Further specify allowed rates for G722 and G726

This commit is contained in:
Sjoerd Simons 2011-10-10 22:04:48 +01:00
parent 93b333cfea
commit b05352beee

View file

@ -398,9 +398,21 @@ gst_ff_aud_caps_new (AVCodecContext * context, enum CodecID codec_id,
break;
}
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;
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:
{
const static gint l_rates[] = { 11025, 22050, 44100 };