diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-19 04:14:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-19 04:16:15 +0100 |
commit | 1166fc07a20ed060d977c0b60cca1109cc4d236a (patch) | |
tree | 58b84f685fa9b7fc40025268b243ad9ed177a4cd | |
parent | de2022c5dd001c660d4822e10f8b54ec8fbd292b (diff) | |
download | ffmpeg-1166fc07a20ed060d977c0b60cca1109cc4d236a.tar.gz |
utils: fix duration calculation for strange_duration_example.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 92207be1bc..75dc9184d8 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; |