Commit f5867d96b8 for ffmpeg

commit f5867d96b88cc3f0ea4ecbbcc3459f7cf0556633
Author: Vann Harl <vannharl@arcor.de>
Date:   Thu May 21 14:36:40 2026 +0200

    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.

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];