[FFmpeg-cvslog] estimate_timings_from_pts: simplify filesize end check
Michael Niedermayer
git at videolan.org
Fri May 16 16:59:09 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 16 15:49:23 2014 +0200| [424599c7cc723ccf6b0b7976d87dd220fffa8934] | committer: Michael Niedermayer
estimate_timings_from_pts: simplify filesize end check
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=424599c7cc723ccf6b0b7976d87dd220fffa8934
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 10ffb84..4248c8c 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 */
More information about the ffmpeg-cvslog
mailing list