]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mov: remove an always true condition
authorZhao Zhili <zhilizhao@tencent.com>
Fri, 18 Sep 2020 14:33:38 +0000 (22:33 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Thu, 10 Dec 2020 11:38:00 +0000 (19:38 +0800)
libavformat/mov.c

index 4496e24951236b8afd3559dfb06e4938b7f9bfe2..710a15dea897348c5ac783eeb73c8d5ef11d0c62 100644 (file)
@@ -1511,7 +1511,7 @@ static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     c->duration = (version == 1) ? avio_rb64(pb) : avio_rb32(pb); /* duration */
     // set the AVFormatContext duration because the duration of individual tracks
     // may be inaccurate
-    if (c->time_scale > 0 && !c->trex_data)
+    if (!c->trex_data)
         c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale);
     avio_rb32(pb); /* preferred scale */