siren: fix sample rate list

It was using a 24000/24000/48000, but I think it meant to use
24000/32000/48000. Not 100% sure...

https://en.wikipedia.org/wiki/G.722.1 has the list of supported
bitrates. It's not clear whether the "flag" code maps to this,
however.

Coverity 206072
This commit is contained in:
Vincent Penquerc'h 2014-04-21 11:48:22 +01:00
parent 0df9279026
commit a5350f2d0c

View file

@ -269,7 +269,7 @@ GetSirenCodecInfo (int flag, int sample_rate, int *number_of_coefs,
if (sample_rate == 24000)
*sample_rate_code = 1;
else if (sample_rate == 24000)
else if (sample_rate == 32000)
*sample_rate_code = 2;
else if (sample_rate == 48000)
*sample_rate_code = 3;