mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
13
fskmodem.c
13
fskmodem.c
@@ -234,10 +234,15 @@ search_startbit3:
|
||||
|
||||
getbyte:
|
||||
|
||||
/* Need at least 80 samples to be sure we'll have a byte */
|
||||
if (*len < 80)
|
||||
return 0;
|
||||
|
||||
/* Need at least 80 samples (for 1200) or
|
||||
1320 (for 45.5) to be sure we'll have a byte */
|
||||
if (fskd->nbit < 8) {
|
||||
if (*len < 1320)
|
||||
return 0;
|
||||
} else {
|
||||
if (*len < 80)
|
||||
return 0;
|
||||
}
|
||||
/* Leemos ahora los bits de datos */
|
||||
j=fskd->nbit;
|
||||
for (a=n1=0;j;j--) {
|
||||
|
Reference in New Issue
Block a user