[FFmpeg-cvslog] avutil/hwcontext_vaapi: use the correct type for VASurfaceAttribExternalBuffers.buffers

James Almer git at videolan.org
Thu Aug 1 18:14:54 EEST 2024


ffmpeg | branch: release/7.0 | James Almer <jamrial at gmail.com> | Wed Jul 31 10:00:54 2024 -0300| [b6b55f6e2be6839faca6067aafe7d3800f2f6ea4] | committer: James Almer

avutil/hwcontext_vaapi: use the correct type for VASurfaceAttribExternalBuffers.buffers

Should fix ticket #11115.

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 6f8e365a2af2b6b21701d41eed3b2e3f8a436eeb)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6b55f6e2be6839faca6067aafe7d3800f2f6ea4
---

 libavutil/hwcontext_vaapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 56d03aa4cd..95a68e62c5 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -1213,7 +1213,7 @@ static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst,
 
     if (!use_prime2 || vas != VA_STATUS_SUCCESS) {
         int k;
-        unsigned long buffer_handle;
+        uintptr_t buffer_handle;
         VASurfaceAttribExternalBuffers buffer_desc;
         VASurfaceAttrib buffer_attrs[2] = {
             {



More information about the ffmpeg-cvslog mailing list