Skip to content

Commit b7bc13a

Browse files
committed
Only consider motion tracker ready if there are more than 1 keyframe
1 parent de332f8 commit b7bc13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/opencv/filter_opencv_tracker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int filter_get_image(mlt_frame frame,
423423
if (!data->initialized) {
424424
mlt_properties_anim_get_int(filter_properties, "results", 0, -1);
425425
mlt_animation anim = mlt_properties_get_animation(filter_properties, "results");
426-
if (anim && mlt_animation_key_count(anim) > 0) {
426+
if (anim && mlt_animation_key_count(anim) > 1) {
427427
data->initialized = true;
428428
data->playback = true;
429429
}

0 commit comments

Comments
 (0)