[FFmpeg-devel] [PATCH 5/6] avfilter/vf_v360: Assert that vf was initialized
Michael Niedermayer
michael at niedermayer.cc
Thu Jul 11 01:50:11 EEST 2024
Maybe helps: CID1504571 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavfilter/vf_v360.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 299dbe9ff54..9a6c31228d3 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -3789,6 +3789,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;
--
2.45.2
More information about the ffmpeg-devel
mailing list