fix out opf bounds err

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15863 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-12-10 00:43:33 +00:00
parent 8f9ab61318
commit ff196446a5
1 changed files with 2 additions and 2 deletions

View File

@ -1437,7 +1437,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs(const switch_codec_impleme
found:
if (!lock) lock = array[i-1]->microseconds_per_packet;
if (!lock && i > 0) lock = array[i-1]->microseconds_per_packet;
if (i > arraylen) {
break;
@ -1534,7 +1534,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
found:
if (!lock) {
if (!lock && i > 0) {
lock = array[i-1]->microseconds_per_packet;
}