[FFmpeg-cvslog] avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec

Rainer Hochecker git at videolan.org
Fri Jan 15 17:51:08 CET 2016


ffmpeg | branch: release/2.5 | Rainer Hochecker <fernetmenta at online.de> | Sun Nov 15 13:58:50 2015 +0100| [50aacb334a341b941603f22b3a0d841046dc4887] | committer: Michael Niedermayer

avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec

Fixes a mpegts file with hevc that fails estimating duration. Increasing number of
retries fixes the issue.

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 2d8c2f1a28073d451c7db31291c333cb15ca3d0b)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3413a7f..b116a45 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2361,7 +2361,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic)
 }
 
 #define DURATION_MAX_READ_SIZE 250000LL
-#define DURATION_MAX_RETRY 4
+#define DURATION_MAX_RETRY 6
 
 /* 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