summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch')
-rw-r--r--recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch b/recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch
new file mode 100644
index 00000000..85c9a116
--- /dev/null
+++ b/recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch
@@ -0,0 +1,46 @@
1From 5fcab2d02c5a304137403454f3b13dff96d3cbd2 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Mon, 1 Dec 2025 12:24:42 +0000
4Subject: [PATCH] Fixed build with -std=c++20
5
6upcoming gcc-16 will change the default to c++20
7
8fixes:
9 ../decode/mpeg2vldemo.cpp:82:5: error: either all initializer
10clauses should be designated or none of them should be
11 82 | {
12 | ^
13
14Backport of upstream commit 5fcab2d02c5a, adapted to the v2.22 release
15branch which uses the GNU colon-style designators (member: value)
16rather than the C99 dot-style (.member = value) used on master. The
17nested clauses are designated using the same colon style as the rest
18of the initializer.
19
20Upstream-Status: Backport [https://github.com/intel/libva-utils/commit/5fcab2d02c5a304137403454f3b13dff96d3cbd2]
21
22Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
23Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
24---
25 decode/mpeg2vldemo.cpp | 6 ++++--
26 1 file changed, 4 insertions(+), 2 deletions(-)
27
28diff --git a/decode/mpeg2vldemo.cpp b/decode/mpeg2vldemo.cpp
29index c6bfbe3..e1f6ac9 100644
30--- a/decode/mpeg2vldemo.cpp
31+++ b/decode/mpeg2vldemo.cpp
32@@ -79,8 +79,10 @@ static VAPictureParameterBufferMPEG2 pic_param = {
33 backward_reference_picture: 0xffffffff,
34 picture_coding_type: 1,
35 f_code: 0xffff,
36- {
37- {
38+ picture_coding_extension:
39+ {
40+ bits:
41+ {
42 intra_dc_precision: 0,
43 picture_structure: 3,
44 top_field_first: 0,
45--
462.34.1