summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOana Stratulat <oanaandreeastratulat@gmail.com>2012-01-11 03:33:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-01-11 05:17:47 +0100
commit550f7c43ece1af27604407647d10e74b52e6fedf (patch)
tree89c1abe2242a59f0f9aabab69c0e93524e79f13e
parentac7efd336487e265511af3424664ecb0cc504d1f (diff)
downloadffmpeg-550f7c43ece1af27604407647d10e74b52e6fedf.tar.gz
Fixes wrong duration in .mov file. Issue 599
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c1
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;
}