# HG changeset patch # User bcoudurier # Date 1233099851 0 # Node ID 8880764c201292fc8fa8135d4280588e741e987e # Parent a6789651f297463181469fa802631b89e0460340 second try fixing time code in gxf diff -r a6789651f297 -r 8880764c2012 gxfenc.c --- a/gxfenc.c Tue Jan 27 22:21:28 2009 +0000 +++ b/gxfenc.c Tue Jan 27 23:44:11 2009 +0000 @@ -362,9 +362,9 @@ { // XXX drop frame uint32_t timecode = - ctx->nb_frames / ctx->sample_rate * 3600 % 24 << 27 | // hours - ctx->nb_frames / ctx->sample_rate * 60 % 60 << 16 | // minutes - ctx->nb_frames / ctx->sample_rate % 60 << 8 | // seconds + ctx->nb_frames / (ctx->sample_rate * 3600) % 24 << 24 | // hours + ctx->nb_frames / (ctx->sample_rate * 60) % 60 << 16 | // minutes + ctx->nb_frames / ctx->sample_rate % 60 << 8 | // seconds ctx->nb_frames % ctx->sample_rate; // fields put_le32(pb, ctx->flags);