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:
parent
c0d38beac0
commit
fd3aba10cc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user