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 2a06abd2d7 hwcontext_vaapi: fix undefined close() on windows
2a06abd2d7 is described below

commit 2a06abd2d7cf32b5dc2e0dd0c4578afcd845a9ba
Author:     wang-bin <[email protected]>
AuthorDate: Tue Nov 19 19:43:02 2024 +0800
Commit:     Daniel Verkamp <[email protected]>
CommitDate: Sat Jul 25 05:30:55 2026 +0000

    hwcontext_vaapi: fix undefined close() on windows
---
 libavutil/hwcontext_vaapi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 98130f9fb1..b04bf243ca 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -1661,8 +1661,10 @@ static void vaapi_device_free(AVHWDeviceContext *ctx)
         XCloseDisplay(priv->x11_display);
 #endif
 
+#if HAVE_VAAPI_DRM
     if (priv->drm_fd >= 0)
         close(priv->drm_fd);
+#endif
 
     av_freep(&priv);
 }

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

Reply via email to