Crash when enabling text overlay on a file with an embedded font
- Play back a file with an embedded font
- Enable "Tools->Effects and Filters->Video Effects->Overlay->Add text"
- segfault
Stack trace attached.
The problem is that p_style->psz_fontname in LoadEmbeddedFace() can be NULL. The attached patch selects the default font in this case, similar as is done when rendering HTML. Just to be safe, it also checks the strcasecmp() parameter.