Lines Matching refs:sub
117 int ff_ass_add_rect2(AVSubtitle *sub, const char *dialog,
121 AVSubtitleRect **rects = sub->rects, *rect;
125 if (sub->num_rects >= UINT_MAX)
128 if (nb_rect_allocated && *nb_rect_allocated <= sub->num_rects) {
129 if (sub->num_rects < UINT_MAX / 17 * 16) {
130 new_nb = sub->num_rects + sub->num_rects/16 + 1;
134 new_nb = sub->num_rects + 1;
137 rects = av_realloc_array(rects, new_nb, sizeof(*sub->rects));
142 sub->rects = rects;
148 rects[sub->num_rects++] = rect;
157 int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
161 return ff_ass_add_rect2(sub, dialog, readorder, layer, style, speaker, NULL);