[FFmpeg-cvslog] utils: fix duration calculation for strange_duration_example.ts

Michael Niedermayer git at videolan.org
Wed Dec 19 04:21:06 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 19 04:14:44 2012 +0100| [1166fc07a20ed060d977c0b60cca1109cc4d236a] | committer: Michael Niedermayer

utils: fix duration calculation for strange_duration_example.ts

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

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

 libavformat/utils.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 92207be..75dc918 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2326,8 +2326,6 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
                     duration -= st->start_time;
                 else
                     duration -= st->first_dts;
-                if (duration < 0)
-                    duration += 1LL<<st->pts_wrap_bits;
                 if (duration > 0) {
                     if (st->duration == AV_NOPTS_VALUE || st->duration < duration)
                         st->duration = duration;



More information about the ffmpeg-cvslog mailing list