Revert "tight: Limit rectangle max width according to spec"

This reverts commit 999c1ef255.

This sends more rects than the original rect count allows for.
pull/30/head
Andri Yngvason 2020-04-05 23:56:09 +00:00
parent 1976221afe
commit 11a73c5cb0
1 changed files with 4 additions and 11 deletions

View File

@ -321,17 +321,10 @@ int tight_encode_frame(struct tight_encoder* self, struct vec* dst,
int box_width = box[i].x2 - x;
int box_height = box[i].y2 - y;
while (box_width > 0) {
int w = MIN(TIGHT_MAX_WIDTH, box_width);
box_width -= w;
rc = tight_encode_box(self, dst, fb, src_fmt, x, y,
fb->width, w, box_height);
fb->width, box_width, box_height);
if (rc < 0)
return -1;
x += w;
}
}
return 0;