aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-16 15:49:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-16 15:49:23 +0200
commit424599c7cc723ccf6b0b7976d87dd220fffa8934 (patch)
tree73483ac2dad7bf8b5731f2cdb6cf8386924bb742
parent5d944f58db99d9481321a924fde62c1df385adca (diff)
downloadffmpeg-424599c7cc723ccf6b0b7976d87dd220fffa8934.tar.gz
estimate_timings_from_pts: simplify filesize end check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 10ffb843bf..4248c8c27a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2530,7 +2530,7 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
av_free_packet(pkt);
}
} while (end_time == AV_NOPTS_VALUE &&
- filesize > (DURATION_MAX_READ_SIZE << retry) &&
+ offset &&
++retry <= DURATION_MAX_RETRY);
/* warn about audio/video streams which duration could not be estimated */