Skip to content

Commit

Permalink
Check that the input is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor committed Sep 4, 2024
1 parent b3ce5af commit 7c19a34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/software/pipeline/main_panoramaSeams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ int aliceVision_main(int argc, char** argv)
continue;
}

if (fs::file_size(iter.path()) == 0)
{
continue;
}

std::smatch m;
const std::string text = iter.path().string();
if (!std::regex_search(text, m, pattern))
Expand Down

0 comments on commit 7c19a34

Please sign in to comment.