Lines Matching defs:pts
122 { "pts", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = MOV_PRFT_SRC_PTS}, 0, 0, AV_OPT_FLAG_ENCODING_PARAM, "prft"},
3348 // Calculate the pts duration for that track instead.
3375 // If it starts with a pts < 0, that is removed by the edit list.
3376 // If it starts with a pts > 0, the edit list adds a delay before that.
3378 // starting with pts=0.
3656 /* Note, this delay is calculated from the pts of the first sample,
3658 * dts<0 pts=0. */
5364 // Try to recreate the original pts for the first packet
5369 // If the pts is less than zero, we will have trimmed
5486 // pts<0 should be cut away using edts
5587 if (first_track->cluster[0].pts == AV_NOPTS_VALUE) {
5601 pts_us = av_rescale_q(first_track->cluster[0].pts,
5616 avio_wb64(pb, first_track->cluster[0].pts); //media time
6181 int64_t offset, dts, pts;
6183 pts = pkt->pts + offset;
6188 if (pts != AV_NOPTS_VALUE)
6189 track->end_pts = pts;
6404 pkt->pts = AV_NOPTS_VALUE;
6636 trk->cluster[trk->entry].pts = pkt->pts;
6645 /* We also may have written the pts and the corresponding duration
6646 * in sidx/tfrf/tfxd tags; make sure the sidx pts and duration match up with
6653 pkt->pts = pkt->dts + trk->end_pts - trk->cluster[trk->entry].dts;
6676 /* Pretend the whole stream started at pts=0, with earlier fragments
6677 * already written. If the stream started at pts=0, the duration sum
6678 * of earlier fragments would have been pkt->pts. */
6679 trk->start_dts = pkt->dts - pkt->pts;
6696 if (pkt->pts == AV_NOPTS_VALUE) {
6697 av_log(s, AV_LOG_WARNING, "pts has no value\n");
6698 pkt->pts = pkt->dts;
6700 if (pkt->dts != pkt->pts)
6702 trk->cluster[trk->entry].cts = pkt->pts - pkt->dts;
6705 trk->start_cts = pkt->pts - pkt->dts;
6786 trk->dts_shift = pkt->pts - pkt->dts;
6812 if (pkt->pts != AV_NOPTS_VALUE)
6813 trk->start_cts = pkt->pts - pkt->dts;
6842 if (pkt->pts != AV_NOPTS_VALUE)
6843 trk->end_pts = pkt->pts;
6865 end->pts = dts;
6950 if (pkt->pts == AV_NOPTS_VALUE) {
7058 pkt->pts = pkt->dts = av_rescale_q(c->start, c->time_base, (AVRational){1,mov->movie_timescale});
7129 pkt->pts = pkt->dts = av_rescale_q(tc.start, av_inv_q(rate), (AVRational){1,mov->movie_timescale});