From: Vincent Penquerc'h Date: Mon, 21 Apr 2014 10:48:22 +0000 (+0100) Subject: siren: fix sample rate list X-Git-Tag: 1.19.3~507^2~10035 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5350f2d0ce0a59fb21afaaef5e519f2a3b93aa0;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/siren/common.c b/gst/siren/common.c index 46a4877..ee77c70 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;