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.
This commit is contained in:
parent
e6162f10de
commit
c11f629bda
|
@ -470,7 +470,7 @@ static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_in
|
|||
|
||||
if (ref == AV_NOPTS_VALUE)
|
||||
ref = pkt->pts;
|
||||
if (sti->pts_wrap_reference != AV_NOPTS_VALUE || st->pts_wrap_bits >= 63 || ref == AV_NOPTS_VALUE || !s->correct_ts_overflow)
|
||||
if (sti->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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue