Lines Matching refs:ctts_index
3516 * Places the found ctts_index and ctts_sample in corresponding output args.
3526 int64_t* ctts_index,
3563 av_assert0(ctts_index);
3565 // Find out the ctts_index for the found frame.
3566 *ctts_index = 0;
3569 if (*ctts_index < ctts_count) {
3571 if (ctts_data[*ctts_index].count == *ctts_sample) {
3572 (*ctts_index)++;
3578 while (*index >= 0 && (*ctts_index) >= 0 && (*ctts_index) < ctts_count) {
3582 if ((e_old[*index].timestamp + ctts_data[*ctts_index].duration) <= timestamp_pts &&
3589 (*ctts_index)--;
3590 if (*ctts_index >= 0)
3591 *ctts_sample = ctts_data[*ctts_index].count - 1;
3864 msc->ctts_index = 0;
3953 av_log(mov->fc, AV_LOG_TRACE, "stts: %"PRId64" ctts: %"PRId64", ctts_index: %"PRId64", ctts_count: %"PRId64"\n",
9139 if (sc->ctts_data && sc->ctts_index < sc->ctts_count) {
9140 pkt->pts = pkt->dts + sc->dts_shift + sc->ctts_data[sc->ctts_index].duration;
9143 if (sc->ctts_index < sc->ctts_count &&
9144 sc->ctts_data[sc->ctts_index].count == sc->ctts_sample) {
9145 sc->ctts_index++;
9294 sc->ctts_index = i;