diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-16 15:49:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-16 15:49:23 +0200 |
commit | 424599c7cc723ccf6b0b7976d87dd220fffa8934 (patch) | |
tree | 73483ac2dad7bf8b5731f2cdb6cf8386924bb742 | |
parent | 5d944f58db99d9481321a924fde62c1df385adca (diff) | |
download | ffmpeg-424599c7cc723ccf6b0b7976d87dd220fffa8934.tar.gz |
estimate_timings_from_pts: simplify filesize end check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 2 |
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 */ |