371
370
/* return 0 if empty rectangle, 1 if non empty */
372
371
static int find_smallest_bounding_rectangle(AVSubtitle *s)
375
374
int y1, y2, x1, x2, y, w, h, i;
378
377
if (s->num_rects == 0 || s->rects == NULL || s->rects[0]->w <= 0 || s->rects[0]->h <= 0)
382
380
for(i = 0; i < s->rects[0]->nb_colors; i++) {
383
381
if ((((uint32_t*)s->rects[0]->pict.data[1])[i] >> 24) == 0)