Mercurial > libavformat.hg
diff gxfenc.c @ 4304:8880764c2012 libavformat
second try fixing time code in gxf
author | bcoudurier |
---|---|
date | Tue, 27 Jan 2009 23:44:11 +0000 |
parents | d9c25a41b461 |
children | bd49910ad4a0 |
line wrap: on
line diff
--- 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);