Commit eff53e95 authored by Roman Donchenko's avatar Roman Donchenko

Fixed the "image sequence" capture not failing when a pattern isn't found.

at can't be a null pointer, so the condition was always false, and
a nonsensical pattern like "image.png%00d" was being inferred.
parent e4dee5b3
......@@ -203,7 +203,7 @@ static char* icvExtractPattern(const char *filename, unsigned *offset)
for(at = name; *at && !isdigit(*at); at++)
;
if(!at)
if(!*at)
return 0;
sscanf(at, "%u", offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment