summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libass/ass_fontconfig.c2
-rw-r--r--libass/ass_parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
index b8ad9ec..dcb0bcf 100644
--- a/libass/ass_fontconfig.c
+++ b/libass/ass_fontconfig.c
@@ -188,7 +188,7 @@ static char *select_font(ASS_Library *library, FCInstance *priv,
*/
FcPatternDel(pat, "lang");
- fsorted = FcFontSort(priv->config, pat, FcTrue, NULL, &result);
+ fsorted = FcFontSort(priv->config, pat, FcFalse, NULL, &result);
ffullname = match_fullname(library, priv, family, bold, italic);
if (!fsorted || !ffullname)
goto error;
diff --git a/libass/ass_parse.c b/libass/ass_parse.c
index c74f3b3..c3292c9 100644
--- a/libass/ass_parse.c
+++ b/libass/ass_parse.c
@@ -966,7 +966,7 @@ void process_karaoke_effects(ASS_Renderer *render_priv)
dt = (tm_current - tm_start);
if ((s1->effect_type == EF_KARAOKE)
|| (s1->effect_type == EF_KARAOKE_KO)) {
- if (dt > 0)
+ if (dt >= 0)
x = x_end + 1;
else
x = x_start;