[FFmpeg-cvslog] Fixes wrong duration in .mov file. Issue 599

Oana Stratulat git at videolan.org
Wed Jan 11 05:36:54 CET 2012


ffmpeg | branch: master | Oana Stratulat <oanaandreeastratulat at gmail.com> | Wed Jan 11 03:33:25 2012 +0200| [550f7c43ece1af27604407647d10e74b52e6fedf] | committer: Michael Niedermayer

Fixes wrong duration in .mov file. Issue 599

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=550f7c43ece1af27604407647d10e74b52e6fedf
---

 libavformat/mov.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 05521fd..df30ed3 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;
 }
 



More information about the ffmpeg-cvslog mailing list