From 2a792b6624e9a4f40b93235115a2aa8bedc29372 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sat, 16 Mar 2013 21:22:25 -0400 Subject: [PATCH] fixed edge case --- sdk/plugins/format.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk/plugins/format.cpp b/sdk/plugins/format.cpp index 5e86e05..c460746 100644 --- a/sdk/plugins/format.cpp +++ b/sdk/plugins/format.cpp @@ -242,12 +242,11 @@ class DefaultFormat : public Format void write(const Template &t) const { - if (t.size() != 1) { + if (t.size() > 1) { videoFormat videoWriter; videoWriter.file = file; videoWriter.write(t); - } - else { + } else if (t.size() == 1) { imwrite(file.name.toStdString(), t); } } -- libgit2 0.21.4