Commit 2a792b6624e9a4f40b93235115a2aa8bedc29372

Authored by Josh Klontz
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,12 +242,11 @@ class DefaultFormat : public Format
242 242
243 void write(const Template &t) const 243 void write(const Template &t) const
244 { 244 {
245 - if (t.size() != 1) { 245 + if (t.size() > 1) {
246 videoFormat videoWriter; 246 videoFormat videoWriter;
247 videoWriter.file = file; 247 videoWriter.file = file;
248 videoWriter.write(t); 248 videoWriter.write(t);
249 - }  
250 - else { 249 + } else if (t.size() == 1) {
251 imwrite(file.name.toStdString(), t); 250 imwrite(file.name.toStdString(), t);
252 } 251 }
253 } 252 }