This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 9674156cc6d008a05a4c6c06470f0284a892959d Author: Kacper Michajłow <[email protected]> AuthorDate: Wed Jul 29 22:00:39 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Mon Aug 10 20:34:48 2026 +0200 avutil/hwcontext_opencl: don't fall through between mapping types When a mapping type is unavailable the case fell into the next hardware type's mapping function instead of returning ENOSYS. Signed-off-by: Kacper Michajłow <[email protected]> --- libavutil/hwcontext_opencl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c index 03f46238b2..e6aa8de60a 100644 --- a/libavutil/hwcontext_opencl.c +++ b/libavutil/hwcontext_opencl.c @@ -2937,32 +2937,38 @@ static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst, case AV_PIX_FMT_DRM_PRIME: if (priv->beignet_drm_mapping_usable) return opencl_map_from_drm_beignet(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_VAAPI_BEIGNET case AV_PIX_FMT_VAAPI: if (priv->beignet_drm_mapping_usable) return opencl_map_from_vaapi(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_VAAPI_INTEL_MEDIA case AV_PIX_FMT_QSV: case AV_PIX_FMT_VAAPI: if (priv->qsv_mapping_usable) return opencl_map_from_qsv(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_DXVA2 case AV_PIX_FMT_DXVA2_VLD: if (priv->dxva2_mapping_usable) return opencl_map_from_dxva2(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_D3D11 case AV_PIX_FMT_D3D11: if (priv->d3d11_mapping_usable) return opencl_map_from_d3d11(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_DRM_ARM case AV_PIX_FMT_DRM_PRIME: if (priv->drm_arm_mapping_usable) return opencl_map_from_drm_arm(hwfc, dst, src, flags); + break; #endif #if HAVE_OPENCL_VIDEOTOOLBOX case AV_PIX_FMT_VIDEOTOOLBOX: _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
