diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2013-06-15 22:02:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-22 19:07:58 +0200 |
commit | 5523d3d5e0ba0fc747b9159d59bf2c57f6a79715 (patch) | |
tree | bb83a20c1e727963dfd673d222e33afc3d0bada0 /libass/ass_parse.c | |
parent | b992975a3543e7d539e6a3b568dd6b1f198e9561 (diff) | |
download | libass-5523d3d5e0ba0fc747b9159d59bf2c57f6a79715.tar.bz2 libass-5523d3d5e0ba0fc747b9159d59bf2c57f6a79715.tar.xz |
Fix \r style lookup
Make \rSTYLENAME with an invalid STYLENAME fall back to
line style rather than to Default. This fixes issue #104.
Diffstat (limited to 'libass/ass_parse.c')
-rw-r--r-- | libass/ass_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_parse.c b/libass/ass_parse.c index bb64971..8e76048 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -756,7 +756,7 @@ char *parse_tag(ASS_Renderer *render_priv, char *p, double pwr) strncpy(style, start, p - start); style[p - start] = '\0'; reset_render_context(render_priv, - render_priv->track->styles + lookup_style(render_priv->track, style)); + lookup_style_strict(render_priv->track, style)); free(style); } else reset_render_context(render_priv, NULL); |