summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch')
-rw-r--r--recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch b/recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch
new file mode 100644
index 0000000..00a1ee2
--- /dev/null
+++ b/recipes-multimedia/mediasdk/files/0002-hevcd-Use-reinterpret_cast-for-style-alignment.patch
@@ -0,0 +1,27 @@
1From d1938a90c7e09f6c901b7ef556bd3e8c33a257aa Mon Sep 17 00:00:00 2001
2From: "Ung, Teng En" <teng.en.ung@intel.com>
3Date: Tue, 19 Jan 2021 15:31:24 +0800
4Subject: [PATCH 2/2] [hevcd] Use reinterpret_cast for style alignment.
5
6Upstream-Status: Accepted [https://github.com/Intel-Media-SDK/MediaSDK/pull/2383]
7Signed-off-by: Ung, Teng En <teng.en.ung@intel.com>
8---
9 _studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp b/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp
13index f346e8c..3069f04 100644
14--- a/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp
15+++ b/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp
16@@ -1110,7 +1110,7 @@ mfxStatus VideoDECODEH265::DecodeFrameCheck(mfxBitstream *bs, mfxFrameSurface1 *
17
18 if (extbuf)
19 {
20- ((mfxExtDecodeErrorReport *)extbuf)->ErrorTypes = 0;
21+ reinterpret_cast<mfxExtDecodeErrorReport *>(extbuf)->ErrorTypes = 0;
22 src.SetExtBuffer(extbuf);
23 }
24 #endif
25--
262.7.4
27