diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-05-09 12:20:04 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-04 20:18:08 +0300 |
commit | 6b16dfd7d1d4b78f34671b52fb20eb398ac3500f (patch) | |
tree | a4ba6f6714872bb12911a9ed68f21740e99d121e | |
parent | 1831d4ff70d5e9c38c6096e76c40dfb6182a0fb0 (diff) |
mpegts: do not use teletext streams as wrap reference
teletext streams are often badly interleaved and/or have broken
timestamps, using them as wrap reference can result in seeking breaking
and wrap detection causing rather wrong timestamps.
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index ba6704fd3e..98a71982dc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -731,7 +731,7 @@ static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_in if (ref == AV_NOPTS_VALUE) ref = pkt->pts; - if (st->pts_wrap_reference != AV_NOPTS_VALUE || st->pts_wrap_bits >= 63 || ref == AV_NOPTS_VALUE || !s->correct_ts_overflow) + if (st->pts_wrap_reference != AV_NOPTS_VALUE || st->pts_wrap_bits >= 63 || ref == AV_NOPTS_VALUE || !s->correct_ts_overflow || st->codecpar->codec_id == AV_CODEC_ID_DVB_TELETEXT) return 0; ref &= (1LL << st->pts_wrap_bits)-1; |