From 550f7c43ece1af27604407647d10e74b52e6fedf Mon Sep 17 00:00:00 2001 From: Oana Stratulat Date: Wed, 11 Jan 2012 03:33:25 +0200 Subject: [PATCH] Fixes wrong duration in .mov file. Issue 599 Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) 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; }