mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_v360: avoid doubles in fov_from_dfov()
This commit is contained in:
parent
c320b78e95
commit
305be41374
@ -4161,8 +4161,8 @@ static void fov_from_dfov(int format, float d_fov, float w, float h, float *h_fo
|
||||
const float d = 0.5f * hypotf(w, h);
|
||||
const float l = sinf(d_fov * M_PI / 360.f) / d;
|
||||
|
||||
*h_fov = asinf(w * 0.5 * l) * 360.f / M_PI;
|
||||
*v_fov = asinf(h * 0.5 * l) * 360.f / M_PI;
|
||||
*h_fov = asinf(w * 0.5f * l) * 360.f / M_PI;
|
||||
*v_fov = asinf(h * 0.5f * l) * 360.f / M_PI;
|
||||
|
||||
if (d_fov > 180.f) {
|
||||
*h_fov = 180.f - *h_fov;
|
||||
|
Loading…
Reference in New Issue
Block a user