summaryrefslogtreecommitdiffstats
path: root/net/rtptools/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'net/rtptools/files/patch-ad')
-rw-r--r--net/rtptools/files/patch-ad24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/rtptools/files/patch-ad b/net/rtptools/files/patch-ad
new file mode 100644
index 0000000..e7bbdd9
--- /dev/null
+++ b/net/rtptools/files/patch-ad
@@ -0,0 +1,24 @@
+--- rtpsend.c.orig Fri Apr 6 18:18:26 2001
++++ rtpsend.c Sat Apr 21 21:59:35 2001
+@@ -351,9 +351,9 @@
+ if (strcmp(n->type, "ssrc") == 0)
+ rr->ssrc = htonl(n->num);
+ else if (strcmp(n->type, "fraction") == 0)
+- rr->fraction = (n->num)*256;
+- else if (strcmp(n->type, "lost") == 0) /* PP: alignment OK? */
+- rr->lost = htonl(n->num);
++ rr->fraclost = htonl((ntohl(rr->fraclost) & 0x00ffffff) | ((n->num)*256 << 24));
++ else if (strcmp(n->type, "lost") == 0)
++ rr->fraclost = htonl((ntohl(rr->fraclost) & 0xff000000) | n->num);
+ else if (strcmp(n->type, "last_seq") == 0)
+ rr->last_seq = htonl(n->num);
+ else if (strcmp(n->type, "jit") == 0)
+@@ -899,6 +899,8 @@
+
+ if (optind < argc) {
+ if (hpt(argv[optind], (struct sockaddr *)&sin, &ttl) < 0) usage(argv[0]);
++ } else {
++ usage(argv[0]);
+ }
+
+ /* create/connect sockets */
OpenPOWER on IntegriCloud