summaryrefslogtreecommitdiffstats
path: root/sub/ass_mp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r--sub/ass_mp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c
index a3a7c73cd3..df32d17ce6 100644
--- a/sub/ass_mp.c
+++ b/sub/ass_mp.c
@@ -40,6 +40,9 @@
void mp_ass_set_style(ASS_Style *style, double res_y,
const struct osd_style_opts *opts)
{
+ if (!style)
+ return;
+
if (opts->font) {
if (!style->FontName || strcmp(style->FontName, opts->font) != 0) {
free(style->FontName);