Fix loading files with multiple dots

This commit is contained in:
manongjohn 2021-04-03 18:58:31 -04:00
parent 63874b4309
commit 41cf19288b

View file

@ -814,8 +814,12 @@ TFilePath TFilePath::withFrame(const TFrameId &frame,
int k = str.substr(0, j).rfind(L'.'); int k = str.substr(0, j).rfind(L'.');
bool hasValidFrameNum = false; bool hasValidFrameNum = false;
if (!isFfmpegType() && checkForSeqNum(type) && isNumbers(str, k, j)) if (!isFfmpegType() && checkForSeqNum(type)) {
if (isNumbers(str, k, j))
hasValidFrameNum = true; hasValidFrameNum = true;
else
k = (int)std::wstring::npos;
}
std::string frameString; std::string frameString;
if (frame.isNoFrame()) if (frame.isNoFrame())
frameString = ""; frameString = "";