summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorDr.Smile <vabnick@gmail.com>2017-08-01 21:35:59 +0300
committerDr.Smile <vabnick@gmail.com>2017-08-01 21:35:59 +0300
commit6092e276de387133de4dfb17843a5d8d0b8de3f0 (patch)
tree580f600c2a0da20c0836b4130d296426889de223 /libass
parent7d73cfea6590a0dbff29d837e8b621c8ed03335f (diff)
downloadlibass-6092e276de387133de4dfb17843a5d8d0b8de3f0.tar.bz2
libass-6092e276de387133de4dfb17843a5d8d0b8de3f0.tar.xz
renderer: fix border existence check
Found by coverity scan.
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 1369a82..5cce4d9 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2113,7 +2113,7 @@ static void render_and_combine_glyphs(ASS_Renderer *render_priv,
current_info->filter.flags |= FILTER_NONZERO_SHADOW;
// VSFilter compatibility: invisible fill and no border?
// In this case no shadow is supposed to be rendered.
- if (info->border || (info->c[0] & 0xFF) != 0xFF)
+ if (info->border[0] || info->border[1] || (info->c[0] & 0xFF) != 0xFF)
current_info->filter.flags |= FILTER_DRAW_SHADOW;
current_info->filter.be = info->be;