Commit 2a792b6624e9a4f40b93235115a2aa8bedc29372
1 parent
f849ddad
fixed edge case
Showing
1 changed file
with
2 additions
and
3 deletions
sdk/plugins/format.cpp
| ... | ... | @@ -242,12 +242,11 @@ class DefaultFormat : public Format |
| 242 | 242 | |
| 243 | 243 | void write(const Template &t) const |
| 244 | 244 | { |
| 245 | - if (t.size() != 1) { | |
| 245 | + if (t.size() > 1) { | |
| 246 | 246 | videoFormat videoWriter; |
| 247 | 247 | videoWriter.file = file; |
| 248 | 248 | videoWriter.write(t); |
| 249 | - } | |
| 250 | - else { | |
| 249 | + } else if (t.size() == 1) { | |
| 251 | 250 | imwrite(file.name.toStdString(), t); |
| 252 | 251 | } |
| 253 | 252 | } | ... | ... |