aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2020-09-18 22:33:38 +0800
committerJun Zhao <barryjzhao@tencent.com>2020-12-10 19:38:00 +0800
commit345d04e8704cadf64d1b232b0d1be91566d1af06 (patch)
treee22a6855f1933a33465eb0c2b19af75c4eba6dbc /libavformat
parent19ce06423964627d553c7ee602fd5c73ca4b2135 (diff)
downloadffmpeg-345d04e8704cadf64d1b232b0d1be91566d1af06.tar.gz
avformat/mov: remove an always true condition
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4496e24951..710a15dea8 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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 */