diff options
Diffstat (limited to 'jni')
-rw-r--r-- | jni/feature_mos/src/mosaic/Mosaic.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jni/feature_mos/src/mosaic/Mosaic.cpp b/jni/feature_mos/src/mosaic/Mosaic.cpp index 1b50c0c..988ec28 100644 --- a/jni/feature_mos/src/mosaic/Mosaic.cpp +++ b/jni/feature_mos/src/mosaic/Mosaic.cpp @@ -157,6 +157,14 @@ int Mosaic::createMosaic(float &progress) { printf("Creating mosaic\n"); + if (frames_size <= 0) + { + // Haven't accepted any frame in aligner. No need to do blending. + progress = TIME_PERCENT_ALIGN + TIME_PERCENT_BLEND + + TIME_PERCENT_FINAL; + return MOSAIC_RET_OK; + } + if (blendingType == Blend::BLEND_TYPE_PAN) { |