1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_v360: do not round second arg for rescale()

This commit is contained in:
Paul B Mahol 2021-10-09 15:42:03 +02:00
parent c0d38beac0
commit fd3aba10cc

View File

@ -1378,7 +1378,7 @@ static av_always_inline float scale(float x, float s)
return (0.5f * x + 0.5f) * s - 0.5f;
}
static av_always_inline float rescale(int x, int s)
static av_always_inline float rescale(int x, float s)
{
return (2.f * x + 1.f) / s - 1.f;
}