aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-15 14:57:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-15 15:09:46 +0200
commit5c7a62aef59e4e7b92078a4c1f5f93ca5c8021ff (patch)
tree9ffa26caf448d301975b7465e37b8478f28633f8 /libavformat
parent5bac83dae84ae7693acb5a4d09b555729771f11c (diff)
downloadffmpeg-5c7a62aef59e4e7b92078a4c1f5f93ca5c8021ff.tar.gz
movenc: fix tmcd parameters
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 8316c30d76..0b0bf83bb5 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1146,7 +1146,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track)
static int mov_write_tmcd_tag(AVIOContext *pb, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
- int frame_duration = track->enc->time_base.num;
+ int frame_duration = av_rescale(track->timescale, track->enc->time_base.num, track->enc->time_base.den);
int nb_frames = (track->timescale + frame_duration/2) / frame_duration;
avio_wb32(pb, 0); /* size */