From 4cb891c435963c22dc147346fc84819f78e2b996 Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Mon, 5 Aug 2013 14:39:57 -0400 Subject: [PATCH] Check for empty src in First --- openbr/plugins/misc.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/misc.cpp b/openbr/plugins/misc.cpp index d79208b..c0a2644 100644 --- a/openbr/plugins/misc.cpp +++ b/openbr/plugins/misc.cpp @@ -179,6 +179,10 @@ class FirstTransform : public UntrainableMetaTransform void project(const Template &src, Template &dst) const { + // AggregateFrames will leave the Template empty + // if it hasn't filled up the buffer + // so we gotta anticipate an empty Template + if (src.empty()) return; dst.file = src.file; dst = src.m(); } -- libgit2 0.21.4