This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 35eebc504538d1b2078219a7d564fc5af6e82d9a
Author:     Zhao Zhili <[email protected]>
AuthorDate: Tue Dec 23 00:36:29 2025 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Fri Jan 2 23:46:19 2026 +0800

    avfilter/vf_libopencv: use av_unreachable
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavfilter/vf_libopencv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index bc8fd0bad5..06a2954bc6 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -26,6 +26,7 @@
 #include "config.h"
 #include <opencv2/core/core_c.h>
 #include <opencv2/imgproc/imgproc_c.h>
+#include "libavutil/avassert.h"
 #include "libavutil/avstring.h"
 #include "libavutil/common.h"
 #include "libavutil/file.h"
@@ -44,7 +45,7 @@ static void fill_iplimage_from_frame(IplImage **_img, const 
AVFrame *frame, enum
     if      (pixfmt == AV_PIX_FMT_GRAY8) { depth = IPL_DEPTH_8U;  channels_nb 
= 1; }
     else if (pixfmt == AV_PIX_FMT_BGRA)  { depth = IPL_DEPTH_8U;  channels_nb 
= 4; }
     else if (pixfmt == AV_PIX_FMT_BGR24) { depth = IPL_DEPTH_8U;  channels_nb 
= 3; }
-    else return;
+    else av_unreachable("unsupported pix fmt");
 
     *_img = img = cvCreateImageHeader((CvSize){frame->width, frame->height}, 
depth, channels_nb);
     img->imageData = img->imageDataOrigin = frame->data[0];

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to