Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -1378,7 +1378,7 @@ static av_always_inline float scale(float x, float s) · 1377 unmodified lines | |||
| 1378 | return (0.5f * x + 0.5f) * s - 0.5f; | 1378 | return (0.5f * x + 0.5f) * s - 0.5f; |
| 1379 | } | 1379 | } |
| 1380 | 1380 | ||
| 1381 | static av_always_inline float rescale(int x, int s) | 1381 | static av_always_inline float rescale(int x, float s) |
| 1382 | { | 1382 | { |
| 1383 | return (2.f * x + 1.f) / s - 1.f; | 1383 | return (2.f * x + 1.f) / s - 1.f; |
| 1384 | } | 1384 | } |