Mercurial > mplayer.hg
changeset 35701:c7866af24567
Updated libass to 7e45532
- Removes a redundant warning message
- Fixes a wrong condition
- Fixes a leak when an error occurs
author | SubJunk |
---|---|
date | Sat, 19 Jan 2013 21:47:31 +0000 |
parents | 7820bad7c1f8 |
children | a1d362602a70 |
files | libass/ass.c libass/ass_parse.c libass/ass_render.c |
diffstat | 3 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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(')');
--- 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));