Skip to content

Commit 3bb4c74

Browse files
committed
fix nearby filter.
1 parent 785c7c8 commit 3bb4c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

animeloop-cli/filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void al::filter::loop_nearby(al::LoopVideo *loop, al::LoopDurations &durations)
110110
int distance_begin = hamming_distance(hashs[prev_begin], hashs[next_begin]);
111111
int distance_end = hamming_distance(hashs[prev_end], hashs[next_end]);
112112

113-
int filter_n = hashs[0].size() / 4;
113+
int filter_n = hashs[0].size() / 2.5;
114114
if (distance_begin >= filter_n && distance_end >= filter_n) {
115115
_durations.push_back(*it);
116116
}

0 commit comments

Comments
 (0)