diff --git a/libavformat/mov.c b/libavformat/mov.c index f9d9a87bcb4914f5355f8b3e945f2b1d7c2febeb..bc682a3be7db66a7a7c64344f41854dd0ae2d1bd 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)