Skip to content

Commit

Permalink
Fix syntax: remove orphan % from "fade in/out" parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
pinterf committed Mar 6, 2021
1 parent 369c822 commit 13346cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtitles/VobSubFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,7 @@ void CVobSubStream::Open(CString name, BYTE* pData, int len)
m_alignver = ver == _T("TOP") ? 0 : ver == _T("CENTER") ? 1 : /*ver == _T("BOTTOM") ? 2 :*/ 2;
}
} else if (key == _T("fade in/out")) {
_stscanf_s(value, _T("%d%, %d%"), &m_fadein, &m_fadeout);
_stscanf_s(value, _T("%d, %d"), &m_fadein, &m_fadeout);
} else if (key == _T("time offset")) {
m_toff = _tcstol(value, nullptr, 10);
} else if (key == _T("forced subs")) {
Expand Down

0 comments on commit 13346cb

Please sign in to comment.