package/ffmpeg: fix build error
PATCH 1/1 package/ffmpeg: fix build error
ffmpeg builds with --enable-vaapi opt made GCC v14 and 32 bit target will throw an 'Wincompatible-pointer-types' error.
This is a downport of an upstreamed commit but not yet present in any ffmpeg version that fix the pointer type.
Fixes:
- http://autobuild.buildroot.org/results/f5f/f5f2d16226ad9500ecf046779d5282ee071a54d3/
--- ...hwcontext-vaapi-use-the-correct-type.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch
package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 6f8e365a2af2b6b21701d41eed3b2e3f8a436eeb Mon Sep 17 00:00:00 2001 +From: James Almer <[email protected]> +Date: Wed, 31 Jul 2024 10:00:54 -0300 +Subject: [PATCH] avutil/hwcontext_vaapi: use the correct type for + VASurfaceAttribExternalBuffers.buffers + +Should fix ticket #11115. + +Signed-off-by: James Almer <[email protected]> +--- + 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 4cb25dd03212e..15fd84aa40679 100644 +--- a/libavutil/hwcontext_vaapi.c ++++ b/libavutil/hwcontext_vaapi.c +@@ -1225,7 +1225,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] = { + {
Signature · 6 lines
2.46.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas,
Quoted 10 lines · On Sat, 14 Sep 2024 17:36:51 +0200 Thomas Perale <[email protected]>…
ffmpeg builds with
--enable-vaapiopt made GCC v14 and 32 bit target will throw an 'Wincompatible-pointer-types' error.This is a downport of an upstreamed commit but not yet present in any ffmpeg version that fix the pointer type.
Fixes:
- http://autobuild.buildroot.org/results/f5f/f5f2d16226ad9500ecf046779d5282ee071a54d3/Signed-off-by Thomas Perale <[email protected]>
Thanks for your patch!
Quoted 6 lines
package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch new file +0
-0
package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch line 9
Quoted 9 lines
package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch new file +9
-0@@ -0,0 +1,26 @@ +From 6f8e365a2af2b6b21701d41eed3b2e3f8a436eeb Mon Sep 17 00:00:00 2001 +From: James Almer <[email protected]> +Date: Wed, 31 Jul 2024 10:00:54 -0300 +Subject: [PATCH] avutil/hwcontext_vaapi: use the correct type for + VASurfaceAttribExternalBuffers.buffers + +Should fix ticket #11115. + +Signed-off-by: James Almer <[email protected]>
We need you to add your Signed-off-by line below the one of the original author, and we need an Upstream: tag pointing to the upstream commit (or pull request or mailing list submission if the fix isn't applied upstream yet).
Note that those issues are reported by "make check-package". I suggest that you add https://paste.ack.tf/faa8ee as your .git/hooks/post-commit so that it automatically runs check-package on the changes you make.
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot