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 | 28 +++++++++++++++++++ 1 file changed, 28 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 +28 -0
@@ -0,0 +1,28 @@ +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]> +Upstream: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/6f8e365a2af2b6b21701d41eed3b2e3f8a436eeb +Signed-off-by: Thomas Perale <[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
Thomas Petazzoni via buildroot
AppliedQuoted 6 lines · On Sat, 14 Sep 2024 20:38:50 +0200 Thomas Perale via buildroot…
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.
Quoted 8 lines
Fixes:
- http://autobuild.buildroot.org/results/f5f/f5f2d16226ad9500ecf046779d5282ee071a54d3/Signed-off-by Thomas Perale <[email protected]>--- ...hwcontext-vaapi-use-the-correct-type.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/ffmpeg/0007-avutil-hwcontext-vaapi-use-the-correct-type.patch
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Perale via buildroot <[email protected]> writes:
ffmpeg builds with
--enable-vaapiopt made GCC v14 and 32 bit target will throw an 'Wincompatible-pointer-types' error.
Quoted 7 lines
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]>
Committed to 2024.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot