Fix loading files with multiple dots
This commit is contained in:
parent
63874b4309
commit
41cf19288b
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
hasValidFrameNum = true;
|
||||
if (!isFfmpegType() && checkForSeqNum(type)) {
|
||||
if (isNumbers(str, k, j))
|
||||
hasValidFrameNum = true;
|
||||
else
|
||||
k = (int)std::wstring::npos;
|
||||
}
|
||||
std::string frameString;
|
||||
if (frame.isNoFrame())
|
||||
frameString = "";
|
||||
|
|
Loading…
Reference in a new issue