Lines Matching refs:nb_index_entries
3532 int nb_keep = sti->nb_index_entries;
3546 sti->nb_index_entries = nb_old;
3600 sti->nb_index_entries = nb_keep;
3621 const size_t min_size_needed = (sti->nb_index_entries + 1) * sizeof(AVIndexEntry);
3630 if (sti->nb_index_entries + 1U >= UINT_MAX / sizeof(AVIndexEntry))
3641 index = sti->nb_index_entries++;
3661 av_assert0(end_index >= 0 && end_index <= sti->nb_index_entries);
3716 for (int ind = 0; ind < sti->nb_index_entries && ctts_ind < msc->ctts_count; ++ind) {
3813 int nb_old = sti->nb_index_entries;
3859 sti->nb_index_entries = 0;
3988 fix_index_entry_timestamps(st, sti->nb_index_entries, edit_list_dts_counter,
4027 fix_index_entry_timestamps(st, sti->nb_index_entries, edit_list_dts_counter,
4088 for (int i = 0; i < sti->nb_index_entries; ++i)
4258 if (!sc->sample_count || sti->nb_index_entries)
4260 if (sc->sample_count >= UINT_MAX / sizeof(*sti->index_entries) - sti->nb_index_entries)
4263 sti->nb_index_entries + sc->sample_count,
4265 sti->nb_index_entries = 0;
4268 sti->index_entries_allocated_size = (sti->nb_index_entries + sc->sample_count) * sizeof(*sti->index_entries);
4358 e = &sti->index_entries[sti->nb_index_entries++];
4367 if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && sti->nb_index_entries < 100)
4421 if (total >= UINT_MAX / sizeof(*sti->index_entries) - sti->nb_index_entries)
4424 sti->nb_index_entries + total,
4426 sti->nb_index_entries = 0;
4429 sti->index_entries_allocated_size = (sti->nb_index_entries + total) * sizeof(*sti->index_entries);
4464 if (sti->nb_index_entries >= total) {
4472 e = &sti->index_entries[sti->nb_index_entries++];
4495 if (st->start_time == AV_NOPTS_VALUE && st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && sti->nb_index_entries > 0) {
5200 index_entry_pos = sti->nb_index_entries;
5209 av_assert0(index_entry_pos <= sti->nb_index_entries);
5274 if ((uint64_t)sti->nb_index_entries + entries >= UINT_MAX / sizeof(AVIndexEntry)) {
5275 entries = UINT_MAX / sizeof(AVIndexEntry) - sti->nb_index_entries;
5281 requested_size = (sti->nb_index_entries + entries) * sizeof(AVIndexEntry);
5289 requested_size = (sti->nb_index_entries + entries) * sizeof(*sc->ctts_data);
5303 if (index_entry_pos < sti->nb_index_entries) {
5308 (sti->nb_index_entries - index_entry_pos));
5317 sti->nb_index_entries += entries;
5318 sc->ctts_count = sti->nb_index_entries;
5412 (sti->nb_index_entries - (index_entry_pos + gap)));
5418 sti->nb_index_entries -= gap;
5432 for (int i = index_entry_pos; i < sti->nb_index_entries; i++) {
8289 if (sti->nb_index_entries) {
8304 for (int i = 0; i < sti->nb_index_entries; i++) {
8306 int64_t end = i+1 < sti->nb_index_entries ? sti->index_entries[i+1].timestamp : st->duration;
8380 if (!sti->nb_index_entries)
8409 if (!sti->nb_index_entries)
8909 if (msc->pb && msc->current_sample < avsti->nb_index_entries) {
9149 int64_t next_dts = (sc->current_sample < ffstream(st)->nb_index_entries) ?
9276 if (sample < 0 && sti->nb_index_entries && timestamp < sti->index_entries[0].timestamp)