diff options
author | Oana Stratulat <oanaandreeastratulat@gmail.com> | 2012-01-11 03:33:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-11 05:17:47 +0100 |
commit | 550f7c43ece1af27604407647d10e74b52e6fedf (patch) | |
tree | 89c1abe2242a59f0f9aabab69c0e93524e79f13e /libavformat/mov.c | |
parent | ac7efd336487e265511af3424664ecb0cc504d1f (diff) | |
download | ffmpeg-550f7c43ece1af27604407647d10e74b52e6fedf.tar.gz |
Fixes wrong duration in .mov file. Issue 599
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 05521fd03e..df30ed3523 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -807,6 +807,7 @@ static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom) avio_rb32(pb); /* current time */ avio_rb32(pb); /* next track ID */ + c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale); return 0; } |