[ogg-dev] liboggz: use ogg_int64_t instead of C99 int64_t for the benefit of you-can-guess-who
ogg.k.ogg.k at googlemail.com
ogg.k.ogg.k at googlemail.com
Tue Dec 16 13:09:27 PST 2008
A widely used platform doesn't bother to have C99
integer types, so this allows building with it.
Reported by sirlemonhead on IRC.
Index: src/tools/oggz_tools.c
===================================================================
--- src/tools/oggz_tools.c (revision 3827)
+++ src/tools/oggz_tools.c (working copy)
@@ -450,7 +450,7 @@
dg->pt = (iframe + pframe) >> 9;
dg->dist = ((iframe & 0xff) << 8) | (pframe & 0xff);
dg->delay = pframe >> 9;
- dg->dt = (int64_t)dg->pt - dg->delay;
+ dg->dt = (ogg_int64_t)dg->pt - dg->delay;
}
int
Index: src/liboggz/metric_internal.c
===================================================================
--- src/liboggz/metric_internal.c (revision 3827)
+++ src/liboggz/metric_internal.c (working copy)
@@ -53,7 +53,7 @@
pframe = granulepos - (iframe << stream->granuleshift);
pt = (iframe + pframe) >> 9;
delay = pframe >> 9;
- dt = (int64_t)pt - delay;
+ dt = (ogg_int64_t)pt - delay;
units = dt * stream->granulerate_d / stream->granulerate_n;
More information about the ogg-dev
mailing list