From f1e4e98748f8279de2e1957861aedda27e8f8d0d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 23 Feb 2019 08:16:55 -0700 Subject: [PATCH] insert up to 5 missing packets --- QnetGateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index c7d6ec4..1577e4e 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1119,7 +1119,7 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b int diff = int(0x3FU & g2buf.ctrl) - int(lastctrl); if (diff < 0) diff += 21; - if (diff > 1 && diff < 4) { // fill up to 3 missing voice frames + if (diff > 1 && diff < 6) { // fill up to 5 missing voice frames if (LOG_DEBUG) fprintf(stderr, "Warning: inserting %d missing voice frame(s)\n", diff - 1); SDSVT dsvt;