[FFmpeg-cvslog] r16839 - trunk/libavformat/gxfenc.c
bcoudurier
subversion
Wed Jan 28 00:44:11 CET 2009
Author: bcoudurier
Date: Wed Jan 28 00:44:11 2009
New Revision: 16839
Log:
second try fixing time code in gxf
Modified:
trunk/libavformat/gxfenc.c
Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c Tue Jan 27 23:21:28 2009 (r16838)
+++ trunk/libavformat/gxfenc.c Wed Jan 28 00:44:11 2009 (r16839)
@@ -362,9 +362,9 @@ static int gxf_write_umf_material_descri
{
// 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);
More information about the ffmpeg-cvslog
mailing list