mpeg4ip broken for 64-bit machines
Sean McNeil
sean at mcneil.com
Mon Nov 15 12:28:40 PST 2004
I've sent a patch to lioux at freebsd.org, but either it failed to get
there or was lost in a storm of emails. For anyone out there that
cannot build mpeg4ip on systems that sizeof(int) != sizeof(long), this
is what you need:
--- ./lib/sdp/sdp_decode.c.orig Thu Nov 11 00:11:15 2004
+++ ./lib/sdp/sdp_decode.c Thu Nov 11 00:11:25 2004
@@ -378,7 +378,7 @@
q = NULL;
while (p != NULL) {
if (new->adj_time == p->adj_time) {
- sdp_debug(LOG_NOTICE, "Duplicate time %d in adj description",
p->adj_time);
+ sdp_debug(LOG_NOTICE, "Duplicate time %ld in adj description",
p->adj_time);
free(new);
return (start);
}
@@ -1580,7 +1580,7 @@
continue;
}
// process <adjustment time> - adjust it from NTP to unix time
- sscanf(sep, "%d", &adj_time);
+ sscanf(sep, "%ld", &adj_time);
// Check for negative sign for offset.
ADV_SPACE(lptr);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20041115/d07f8c73/attachment.bin
More information about the freebsd-ports
mailing list