mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
second try fixing time code in gxf
Originally committed as revision 16839 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
be195ed1d6
commit
d972e56cf2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user