Mercurial > libavformat.hg
changeset 4304:8880764c2012 libavformat
second try fixing time code in gxf
author | bcoudurier |
---|---|
date | Tue, 27 Jan 2009 23:44:11 +0000 |
parents | a6789651f297 |
children | 3e1bf36d7c73 |
files | gxfenc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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);