Commit 684dcae3 authored by conrad's avatar conrad

oggz-tools: Handle dirac dt as a signed number, to allow negative values.

Patch from David Flynn, from discussion at
http://lists.xiph.org/pipermail/ogg-dev/2008-November/001264.html


git-svn-id: http://svn.annodex.net/liboggz/trunk@3779 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 465d48c9
......@@ -460,7 +460,7 @@ ot_fprint_granulepos (FILE * stream, OGGZ * oggz, long serialno,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment