[FFmpeg-cvslog] lavf: increase retries to guess duration from pts by 1

Michael Niedermayer git at videolan.org
Tue Oct 23 17:32:07 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 23 16:53:48 2012 +0200| [31cdf6002ae56094b2ed11851f2d877acd6cf44f] | committer: Michael Niedermayer

lavf: increase retries to guess duration from pts by 1

This fixes finding the duration for one TS file

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31cdf6002ae56094b2ed11851f2d877acd6cf44f
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index f27104e..7a734d4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2140,7 +2140,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic)
 }
 
 #define DURATION_MAX_READ_SIZE 250000
-#define DURATION_MAX_RETRY 3
+#define DURATION_MAX_RETRY 4
 
 /* only usable for MPEG-PS streams */
 static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)



More information about the ffmpeg-cvslog mailing list