diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-27 23:44:11 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-27 23:44:11 +0000 |
commit | d972e56cf21e9fa12922704da276d26111b5dbc1 (patch) | |
tree | 46df8b140b8fb3d0556ea500680f407682fc9ee3 | |
parent | be195ed1d6ebc5862dbab216cfe83f8edc8a1f3d (diff) | |
download | ffmpeg-d972e56cf21e9fa12922704da276d26111b5dbc1.tar.gz |
second try fixing time code in gxf
Originally committed as revision 16839 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/gxfenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index dd2d76e69e..6771483c49 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -362,9 +362,9 @@ static int gxf_write_umf_material_description(ByteIOContext *pb, GXFContext *ctx { // 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); |