2008/11/14 David Flynn <[EMAIL PROTECTED]>: > On 2008-11-13, Conrad Parker <[EMAIL PROTECTED]> wrote: >> Are the reported granulepos of the packetno 2 and 3 correct? The dt >> value looks large. > > It should be printed as a -ve number, i've obviously made an error. > > This will fix it: > > Index: src/tools/oggz_tools.c > =================================================================== > --- src/tools/oggz_tools.c (revision 3775) > +++ src/tools/oggz_tools.c (working copy) > @@ -460,7 +460,7 @@ > uint32_t pt = (iframe + pframe) >> 9; > uint16_t dist = ((iframe & 0xff) << 8) | (pframe & 0xff); > uint16_t delay = pframe >> 9; > - int64_t dt = pt - delay; > + int64_t dt = (int64_t)pt - delay; > ret = fprintf (stream, > "(pt:%u,dt:%" PRId64 ",dist:%hu,delay:%hu)", > pt, dt, dist, delay); >
thanks, applied in changeset:3779 Conrad. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Schrodinger-devel mailing list Schrodinger-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/schrodinger-devel