Skip to content

Commit

Permalink
Skip loading of embedded system fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
clsid2 committed Oct 11, 2023
1 parent 9d5d2ea commit acf6659
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demuxer/Demuxers/LAVFDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,11 @@ STDMETHODIMP CLAVFDemuxer::InitAVFormat(LPCOLESTR pszFileName, BOOL bForce)

if (st->codecpar->codec_id == AV_CODEC_ID_TTF || st->codecpar->codec_id == AV_CODEC_ID_OTF)
{
// skip loading system fonts, this can mess up player gui
if (_strnicmp(attachFilename->value, "segoe", 5) == 0) {
continue;
}

if (!m_pFontInstaller)
{
m_pFontInstaller = new CFontInstaller();
Expand Down

0 comments on commit acf6659

Please sign in to comment.