Commit 187a02e8 authored by Debargha Mukherjee's avatar Debargha Mukherjee Committed by Yaowu Xu
Browse files

Fix initialization in global motion estimation

BUG=aomedia:504
BUG=aomedia:505

Change-Id: Ie1d24b84ebe54952324533bf882064f867c3b177
parent 34c06df4
...@@ -986,6 +986,9 @@ static int ransac(const int *matched_points, int npoints, ...@@ -986,6 +986,9 @@ static int ransac(const int *matched_points, int npoints,
double *cnp1, *cnp2; double *cnp1, *cnp2;
for (i = 0; i < num_desired_motions; ++i) {
num_inliers_by_motion[i] = 0;
}
if (npoints < minpts * MINPTS_MULTIPLIER || npoints == 0) { if (npoints < minpts * MINPTS_MULTIPLIER || npoints == 0) {
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment