History

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

Paul B Mahol committed 5 years ago

Commit fd3aba11 parent c0d38be1 file · +1 −1Browse files

Unified · Split

libavfilter/vf_v360.c+1−1
@@ -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
1381static av_always_inline float rescale(int x, int s)1381static 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}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t