Fixed small bug having to do with blend image

This commit is contained in:
lostjared
2018-05-22 04:02:34 -07:00
parent cf815bef6f
commit 90a365563b

View File

@@ -189,7 +189,7 @@ void Playback::run() {
cur = current;
mutex_shown.unlock();
ac::orig_frame = frame.clone();
if(blend_set == true && (blend_image_scaled.size() != frame.size())) {
if(blend_set == true && (blend_image_scaled.empty() || blend_image_scaled.size() != frame.size())) {
ac::resolution = frame.size();
cv::resize(blend_image, blend_image_scaled, ac::resolution);
}