From a5350f2d0ce0a59fb21afaaef5e519f2a3b93aa0 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 21 Apr 2014 11:48:22 +0100 Subject: [PATCH] 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 --- gst/siren/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/siren/common.c b/gst/siren/common.c index 46a4877bb9..ee77c70261 100644 --- a/gst/siren/common.c +++ b/gst/siren/common.c @@ -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;