avfilter/vf_v360: Assert that vf was initialized

Maybe helps: CID1504571 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f802d65de0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2024-07-11 00:10:45 +02:00
parent cbe80399b8
commit 4df3cd852f

View File

@@ -3787,6 +3787,8 @@ static int barrelsplit_to_xyz(const V360Context *s,
case 3: // back bottom
vf = (y * 2.f - 1.5f) / scaleh + 3.f - facef;
break;
default:
av_assert0(0);
}
l_x = (0.5f - uf) / scalew;
l_y = 0.5f * dir_vert;