Merge pull request #641 from manongjohn/fix_loading_multi-dot_files
Fix loading files with multiple dots
This commit is contained in:
commit
8f0022b17e
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'.');
|
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)) {
|
||||||
hasValidFrameNum = true;
|
if (isNumbers(str, k, j))
|
||||||
|
hasValidFrameNum = true;
|
||||||
|
else
|
||||||
|
k = (int)std::wstring::npos;
|
||||||
|
}
|
||||||
std::string frameString;
|
std::string frameString;
|
||||||
if (frame.isNoFrame())
|
if (frame.isNoFrame())
|
||||||
frameString = "";
|
frameString = "";
|
||||||
|
|
Loading…
Reference in a new issue