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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new f5867d96b8 avutil/hwcontext_opencl.c: fix preprocessor check on QSV
f5867d96b8 is described below

commit f5867d96b88cc3f0ea4ecbbcc3459f7cf0556633
Author:     Vann Harl <[email protected]>
AuthorDate: Thu May 21 14:36:40 2026 +0200
Commit:     xhaihao <[email protected]>
CommitDate: Sun Nov 22 08:52:18 2026 +0000

    avutil/hwcontext_opencl.c: fix preprocessor check on QSV
    
    hwcontext_qsv.o (which defines ff_qsv_get_surface_base_handle) is
    compiled when CONFIG_QSV=1, not CONFIG_LIBMFX=1.
    With --disable-everything plus --enable-libvpl, CONFIG_LIBMFX is set (as
    a libvpl pkg-config side effect) but no QSV component selects qsv,
    leaving CONFIG_QSV=0.
    The opencl QSV bridge then referenced an undefined symbol at link time.
    CONFIG_QSV implies CONFIG_LIBMFX via qsv_deps so this gate is strictly
    correct.
---
 libavutil/hwcontext_opencl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index e6aa8de60a..e895f704b8 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -77,7 +77,7 @@
 #include <VideoToolbox/VideoToolbox.h>
 #endif
 
-#if HAVE_OPENCL_VAAPI_INTEL_MEDIA && CONFIG_LIBMFX
+#if HAVE_OPENCL_VAAPI_INTEL_MEDIA && CONFIG_QSV
 extern int ff_qsv_get_surface_base_handle(mfxFrameSurface1 *surf,
                                           enum AVHWDeviceType base_dev_typ,
                                           void **base_handle);
@@ -2278,7 +2278,7 @@ static int opencl_map_from_qsv(AVHWFramesContext *dst_fc, 
AVFrame *dst,
     cl_int cle;
     int err, p;
 
-#if CONFIG_LIBMFX
+#if CONFIG_QSV
     if (src->format == AV_PIX_FMT_QSV) {
         void *base_handle;
         mfxFrameSurface1 *mfx_surface = (mfxFrameSurface1*)src->data[3];

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to