From a5929abe7a004d4a3944c14feb45cd55d197b251 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Wed, 11 Feb 2009 02:32:39 +0000 Subject: [PATCH] adjust time rate according to elst time offset Originally committed as revision 17146 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index f9d9a87bcb..bc682a3be7 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1162,8 +1162,6 @@ static int mov_read_stts(MOVContext *c, ByteIOContext *pb, MOVAtom atom) return -1; dprintf(c->fc, "track[%i].stts.entries = %i\n", c->fc->nb_streams-1, entries); - sc->time_rate=0; - for(i=0; itime_offset = time; + sc->time_rate = av_gcd(sc->time_rate, time); + } } if(edit_count > 1)