diff options
| -rw-r--r-- | recipes-graphics/libva/libva-intel-utils/0001-mpeg2vldemo-fix-mixed-designated-initializers.patch | 46 | ||||
| -rw-r--r-- | recipes-graphics/libva/libva-intel-utils_2.22.0.bb | 4 |
2 files changed, 49 insertions, 1 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 @@ | |||
| 1 | From 5fcab2d02c5a304137403454f3b13dff96d3cbd2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rudi Heitbaum <rudi@heitbaum.com> | ||
| 3 | Date: Mon, 1 Dec 2025 12:24:42 +0000 | ||
| 4 | Subject: [PATCH] Fixed build with -std=c++20 | ||
| 5 | |||
| 6 | upcoming gcc-16 will change the default to c++20 | ||
| 7 | |||
| 8 | fixes: | ||
| 9 | ../decode/mpeg2vldemo.cpp:82:5: error: either all initializer | ||
| 10 | clauses should be designated or none of them should be | ||
| 11 | 82 | { | ||
| 12 | | ^ | ||
| 13 | |||
| 14 | Backport of upstream commit 5fcab2d02c5a, adapted to the v2.22 release | ||
| 15 | branch which uses the GNU colon-style designators (member: value) | ||
| 16 | rather than the C99 dot-style (.member = value) used on master. The | ||
| 17 | nested clauses are designated using the same colon style as the rest | ||
| 18 | of the initializer. | ||
| 19 | |||
| 20 | Upstream-Status: Backport [https://github.com/intel/libva-utils/commit/5fcab2d02c5a304137403454f3b13dff96d3cbd2] | ||
| 21 | |||
| 22 | Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com> | ||
| 23 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 24 | --- | ||
| 25 | decode/mpeg2vldemo.cpp | 6 ++++-- | ||
| 26 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
| 27 | |||
| 28 | diff --git a/decode/mpeg2vldemo.cpp b/decode/mpeg2vldemo.cpp | ||
| 29 | index 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 | -- | ||
| 46 | 2.34.1 | ||
diff --git a/recipes-graphics/libva/libva-intel-utils_2.22.0.bb b/recipes-graphics/libva/libva-intel-utils_2.22.0.bb index 041ea1ed..86572591 100644 --- a/recipes-graphics/libva/libva-intel-utils_2.22.0.bb +++ b/recipes-graphics/libva/libva-intel-utils_2.22.0.bb | |||
| @@ -14,7 +14,9 @@ SECTION = "x11" | |||
| 14 | LICENSE = "MIT" | 14 | LICENSE = "MIT" |
| 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=b148fc8adf19dc9aec17cf9cd29a9a5e" | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=b148fc8adf19dc9aec17cf9cd29a9a5e" |
| 16 | 16 | ||
| 17 | SRC_URI = "git://github.com/intel/libva-utils.git;branch=v2.22-branch;protocol=https" | 17 | SRC_URI = "git://github.com/intel/libva-utils.git;branch=v2.22-branch;protocol=https \ |
| 18 | file://0001-mpeg2vldemo-fix-mixed-designated-initializers.patch \ | ||
| 19 | " | ||
| 18 | SRCREV = "1a13ae13382b7b548f3a7e8035e1d7df66662c0a" | 20 | SRCREV = "1a13ae13382b7b548f3a7e8035e1d7df66662c0a" |
| 19 | 21 | ||
| 20 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))" | 22 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))" |
