avfilter/vf_v360: improve xyz_to_dfisheye()

This commit is contained in:
Paul B Mahol 2022-01-22 10:32:34 +01:00
parent 741b5061ea
commit 06a54a4ec7

View File

@ -3451,7 +3451,7 @@ static int xyz_to_dfisheye(const V360Context *s,
const float *vec, int width, int height, const float *vec, int width, int height,
int16_t us[4][4], int16_t vs[4][4], float *du, float *dv) int16_t us[4][4], int16_t vs[4][4], float *du, float *dv)
{ {
const float ew = (width - 1) * 0.5f; const float ew = width * 0.5f;
const float eh = height; const float eh = height;
const float h = hypotf(vec[0], vec[1]); const float h = hypotf(vec[0], vec[1]);