Pau Espin Pedrol has submitted this change and it was merged.

Change subject: osmux: Fix delay between RTP packets
......................................................................


osmux: Fix delay between RTP packets

AMR frame contains 160 samples at 8000Hz -> 20 ms long

Change-Id: I36dc69f9caf591dd1b578bc914a2ce426c7f2813
---
M src/osmux.c
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmux.c b/src/osmux.c
index d12a39a..91054f1 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -42,8 +42,9 @@
 #define DEBUG_MSG              0
 #endif
 
-/* delta time between two RTP messages */
-#define DELTA_RTP_MSG          16000
+/* delta time between two RTP messages (in microseconds) */
+#define DELTA_RTP_MSG          20000
+/* delta time between two RTP messages (in samples, 8kHz) */
 #define DELTA_RTP_TIMESTAMP    160
 
 static void *osmux_ctx;

-- 
To view, visit https://gerrit.osmocom.org/2397
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I36dc69f9caf591dd1b578bc914a2ce426c7f2813
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: daniel <[email protected]>

Reply via email to