Lines Matching refs:pts_wrap_bits
52 if (sti->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 &&
56 return timestamp + (1ULL << st->pts_wrap_bits);
59 return timestamp - (1ULL << st->pts_wrap_bits);
482 if (sti->pts_wrap_reference != AV_NOPTS_VALUE || st->pts_wrap_bits >= 63 || ref == AV_NOPTS_VALUE || !s->correct_ts_overflow)
484 ref &= (1LL << st->pts_wrap_bits)-1;
489 pts_wrap_behavior = (ref < (1LL << st->pts_wrap_bits) - (1LL << st->pts_wrap_bits-3)) ||
490 (ref < (1LL << st->pts_wrap_bits) - av_rescale(60, st->time_base.den, st->time_base.num)) ?
994 st->pts_wrap_bits < 63 && pkt->dts > INT64_MIN + (1LL << st->pts_wrap_bits) &&
995 pkt->dts - (1LL << (st->pts_wrap_bits - 1)) > pkt->pts) {
996 if (is_relative(sti->cur_dts) || pkt->dts - (1LL<<(st->pts_wrap_bits - 1)) > sti->cur_dts) {
997 pkt->dts -= 1LL << st->pts_wrap_bits;
999 pkt->pts += 1LL << st->pts_wrap_bits;
1475 int wrap_bits = s->streams[next_pkt->stream_index]->pts_wrap_bits;