diff options
author | Dr.Smile <vabnick@gmail.com> | 2021-09-24 18:01:40 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2021-10-05 21:21:54 +0300 |
commit | 7bf4bee0fc9a1d6257a105a3c19df6cf08733f8e (patch) | |
tree | 918dd60cde2c923816367e0177e9c558fe072d89 /libass/ass_drawing.c | |
parent | d9b5e327c5e8d26c9dde2ba9bc401c9f66883726 (diff) | |
download | libass-7bf4bee0fc9a1d6257a105a3c19df6cf08733f8e.tar.bz2 libass-7bf4bee0fc9a1d6257a105a3c19df6cf08733f8e.tar.xz |
outline: refactor and add comments and asserts
Diffstat (limited to 'libass/ass_drawing.c')
-rw-r--r-- | libass/ass_drawing.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) |