mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 03:05:50 +00:00
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:
parent
8f9ab61318
commit
ff196446a5
@ -1437,7 +1437,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs(const switch_codec_impleme
|
|||||||
|
|
||||||
found:
|
found:
|
||||||
|
|
||||||
if (!lock) lock = array[i-1]->microseconds_per_packet;
|
if (!lock && i > 0) lock = array[i-1]->microseconds_per_packet;
|
||||||
|
|
||||||
if (i > arraylen) {
|
if (i > arraylen) {
|
||||||
break;
|
break;
|
||||||
@ -1534,7 +1534,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
|
|||||||
|
|
||||||
found:
|
found:
|
||||||
|
|
||||||
if (!lock) {
|
if (!lock && i > 0) {
|
||||||
lock = array[i-1]->microseconds_per_packet;
|
lock = array[i-1]->microseconds_per_packet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user