1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avfilter/vf_v360: improve rounding in xyz_to_dfisheye()

This commit is contained in:
Paul B Mahol 2022-03-01 10:14:03 +01:00
parent 5ffad29d62
commit e1974622e1

View File

@ -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);