avfilter/vf_v360: improve rounding in xyz_to_dfisheye()

release/5.1
Paul B Mahol 3 years ago
parent 5ffad29d62
commit e1974622e1
  1. 2
      libavfilter/vf_v360.c

@ -3468,7 +3468,7 @@ static int xyz_to_dfisheye(const V360Context *s,
u_shift = ceilf(ew);
} else {
u_shift = 0;
uf = ew - uf;
uf = ew - uf - 1.f;
}
ui = floorf(uf);

Loading…
Cancel
Save