fix windows build
This commit is contained in:
parent
48a9e9a5ac
commit
5655fbd58b
|
@ -521,7 +521,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_init_with_bitrate(switch_codec
|
||||||
/* If no specific codec interval is requested opt for 20ms above all else because lots of stuff assumes it */
|
/* If no specific codec interval is requested opt for 20ms above all else because lots of stuff assumes it */
|
||||||
if (!ms) {
|
if (!ms) {
|
||||||
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {
|
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {
|
||||||
if ((!rate || rate == iptr->samples_per_second) && (!bitrate || bitrate == iptr->bits_per_second) &&
|
if ((!rate || rate == iptr->samples_per_second) && (!bitrate || bitrate == (uint32_t)iptr->bits_per_second) &&
|
||||||
(20 == (iptr->microseconds_per_packet / 1000)) && (!channels || channels == iptr->number_of_channels)) {
|
(20 == (iptr->microseconds_per_packet / 1000)) && (!channels || channels == iptr->number_of_channels)) {
|
||||||
implementation = iptr;
|
implementation = iptr;
|
||||||
goto found;
|
goto found;
|
||||||
|
@ -531,7 +531,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_init_with_bitrate(switch_codec
|
||||||
|
|
||||||
/* Either looking for a specific interval or there was no interval specified and there wasn't one @20ms available */
|
/* Either looking for a specific interval or there was no interval specified and there wasn't one @20ms available */
|
||||||
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {
|
for (iptr = codec_interface->implementations; iptr; iptr = iptr->next) {
|
||||||
if ((!rate || rate == iptr->samples_per_second) && (!bitrate || bitrate == iptr->bits_per_second) &&
|
if ((!rate || rate == iptr->samples_per_second) && (!bitrate || bitrate == (uint32_t)iptr->bits_per_second) &&
|
||||||
(!ms || ms == (iptr->microseconds_per_packet / 1000)) && (!channels || channels == iptr->number_of_channels)) {
|
(!ms || ms == (iptr->microseconds_per_packet / 1000)) && (!channels || channels == iptr->number_of_channels)) {
|
||||||
implementation = iptr;
|
implementation = iptr;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue