From 7bf4bee0fc9a1d6257a105a3c19df6cf08733f8e Mon Sep 17 00:00:00 2001 From: "Dr.Smile" Date: Fri, 24 Sep 2021 18:01:40 +0300 Subject: outline: refactor and add comments and asserts --- libass/ass_drawing.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libass/ass_drawing.c') diff --git a/libass/ass_drawing.c b/libass/ass_drawing.c index c7f99b71..42638b89 100644 --- a/libass/ass_drawing.c +++ b/libass/ass_drawing.c @@ -202,8 +202,7 @@ bool ass_drawing_parse(ASS_Outline *outline, ASS_Rect *cbox, if (started) { if (!outline_add_segment(outline, OUTLINE_LINE_SEGMENT)) goto error; - if (!outline_close_contour(outline)) - goto error; + outline_close_contour(outline); started = false; } token = token->next; @@ -251,8 +250,7 @@ bool ass_drawing_parse(ASS_Outline *outline, ASS_Rect *cbox, if (started) { if (!outline_add_segment(outline, OUTLINE_LINE_SEGMENT)) goto error; - if (!outline_close_contour(outline)) - goto error; + outline_close_contour(outline); } if (lib) -- cgit v1.2.3