Lines Matching refs:nb_subs
31 if (merge && q->nb_subs > 0) {
35 sub = &q->subs[q->nb_subs - 1];
43 if (q->nb_subs >= INT_MAX/sizeof(*q->subs) - 1)
46 (q->nb_subs + 1) * sizeof(*q->subs));
50 sub = &subs[q->nb_subs++];
88 qsort(q->subs, q->nb_subs, sizeof(*q->subs),
91 for (i = 0; i < q->nb_subs; i++)
92 if (q->subs[i].duration == -1 && i < q->nb_subs - 1)
100 if (q->current_sub_idx == q->nb_subs)
113 int s1 = 0, s2 = q->nb_subs - 1;
139 if (ts < 0 || ts >= q->nb_subs)
148 for (i = idx; i < q->nb_subs && q->subs[i].pts < min_ts; i++)
189 for (i = 0; i < q->nb_subs; i++)
192 q->nb_subs = q->allocated_size = q->current_sub_idx = 0;