[FFmpeg-cvslog] avfilter/vf_v360: Assert that vf was initialized

Michael Niedermayer git at videolan.org
Sun Aug 11 14:22:51 EEST 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jul 11 00:10:45 2024 +0200| [f802d65de0fe419563705a6846a73b77b020ef14] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f802d65de0fe419563705a6846a73b77b020ef14
---

 libavfilter/vf_v360.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 299dbe9ff5..9a6c31228d 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;



More information about the ffmpeg-cvslog mailing list