Browse Source

Revert "avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations"

Some people seem to oppose this the patch seems to have been missed for a month on the ML
lets restart the discussion and solve this after the release

This reverts commit e936c8d176.
tags/n3.2
Michael Niedermayer 8 years ago
parent
commit
38e5a4f3bb
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      libavformat/utils.c

+ 0
- 6
libavformat/utils.c View File

@@ -833,12 +833,6 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
continue; continue;
} }


if ( (pkt->dts != AV_NOPTS_VALUE && (pkt->dts <= INT64_MIN/2 || pkt->dts >= INT64_MAX/2))
|| (pkt->pts != AV_NOPTS_VALUE && (pkt->pts <= INT64_MIN/2 || pkt->pts >= INT64_MAX/2))) {
av_log(s, AV_LOG_WARNING, "Ignoring huge timestamps %"PRId64" %"PRId64"\n", pkt->dts, pkt->pts);
pkt->dts = pkt->pts = AV_NOPTS_VALUE;
}

st = s->streams[pkt->stream_index]; st = s->streams[pkt->stream_index];


if (update_wrap_reference(s, st, pkt->stream_index, pkt) && st->pts_wrap_behavior == AV_PTS_WRAP_SUB_OFFSET) { if (update_wrap_reference(s, st, pkt->stream_index, pkt) && st->pts_wrap_behavior == AV_PTS_WRAP_SUB_OFFSET) {


Loading…
Cancel
Save