# HG changeset patch # User SubJunk # Date 1358632051 0 # Node ID c7866af2456705e2decb3758f3365103c27b8cb9 # Parent 7820bad7c1f8ba193672399f7052e1a2b139fa07 Updated libass to 7e45532 - Removes a redundant warning message - Fixes a wrong condition - Fixes a leak when an error occurs diff -r 7820bad7c1f8 -r c7866af24567 libass/ass.c --- a/libass/ass.c Sat Jan 19 13:00:41 2013 +0000 +++ b/libass/ass.c Sat Jan 19 21:47:31 2013 +0000 @@ -988,7 +988,9 @@ oleft += size; } else { ass_msg(library, MSGL_WARN, "Error recoding file"); - return NULL; + free(outbuf); + outbuf = NULL; + goto out; } } else if (clear) break; @@ -996,6 +998,7 @@ outbuf[osize - oleft - 1] = 0; } +out: if (icdsc != (iconv_t) (-1)) { (void) iconv_close(icdsc); icdsc = (iconv_t) (-1); diff -r 7820bad7c1f8 -r c7866af24567 libass/ass_parse.c --- a/libass/ass_parse.c Sat Jan 19 13:00:41 2013 +0000 +++ b/libass/ass_parse.c Sat Jan 19 21:47:31 2013 +0000 @@ -241,7 +241,7 @@ drawing->scale = scale; drawing->scale_x = render_priv->font_scale_x * render_priv->font_scale; drawing->scale_y = render_priv->font_scale; - while (*p != ')' && *p != '}' && p != 0) + while (*p != ')' && *p != '}' && *p != 0) ass_drawing_add_char(drawing, *p++); skipopt(')'); diff -r 7820bad7c1f8 -r c7866af24567 libass/ass_render.c --- a/libass/ass_render.c Sat Jan 19 13:00:41 2013 +0000 +++ b/libass/ass_render.c Sat Jan 19 21:47:31 2013 +0000 @@ -546,7 +546,6 @@ ASS_Drawing *drawing = render_priv->state.clip_drawing; BitmapHashKey key; BitmapHashValue *val; - int error; if (!drawing) return; @@ -586,10 +585,6 @@ clip_bm = outline_to_bitmap(render_priv->library, render_priv->ftlibrary, outline, 0); - if (clip_bm == NULL) { - ass_msg(render_priv->library, MSGL_WARN, - "Clip vector rasterization failed: %d. Skipping.", error); - } // Add to cache memset(&v, 0, sizeof(v));