Skip to content

Commit

Permalink
Only consider motion tracker ready if there are more than 1 keyframe
Browse files Browse the repository at this point in the history
  • Loading branch information
j-b-m committed Feb 14, 2025
1 parent de332f8 commit b7bc13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/opencv/filter_opencv_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static int filter_get_image(mlt_frame frame,
if (!data->initialized) {
mlt_properties_anim_get_int(filter_properties, "results", 0, -1);
mlt_animation anim = mlt_properties_get_animation(filter_properties, "results");
if (anim && mlt_animation_key_count(anim) > 0) {
if (anim && mlt_animation_key_count(anim) > 1) {
data->initialized = true;
data->playback = true;
}
Expand Down

0 comments on commit b7bc13a

Please sign in to comment.