1
0
Fork 0

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:
Hendrik Leppkes 2015-05-09 11:20:04 +02:00
parent e6162f10de
commit c11f629bda
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 1 additions and 1 deletions

View File

@ -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;