Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2004 12:28:37 -0800
From:      Sean McNeil <sean@mcneil.com>
To:        ports@freebsd.org
Subject:   mpeg4ip broken for 64-bit machines
Message-ID:  <1100550517.3074.2.camel@server.mcneil.com>

next in thread | raw e-mail | index | archive | help

--=-v4uX+OLUVT7teGy3CXQn
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I've sent a patch to lioux@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) !=3D 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 =3D NULL;
   while (p !=3D NULL) {
     if (new->adj_time =3D=3D 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);
=20
     // Check for negative sign for offset.
     ADV_SPACE(lptr);


--=-v4uX+OLUVT7teGy3CXQn
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBBmRF1yQsGN30uGE4RAom1AJ0ZcAiiAQwG8tyTX2+GhBbtNhWzPgCfRG/j
Ri4fiy72YWcppXr7n/NI3mk=
=iVAo
-----END PGP SIGNATURE-----

--=-v4uX+OLUVT7teGy3CXQn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1100550517.3074.2.camel>