Merge pull request #641 from manongjohn/fix_loading_multi-dot_files

Fix loading files with multiple dots
This commit is contained in:
manongjohn 2021-04-05 08:12:01 -04:00 committed by GitHub
commit 8f0022b17e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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