git: 83dbdc9ccd43 - main - multimedia/intel-media-sdk: update to 21.4.3

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 03 Dec 2021 17:05:14 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83dbdc9ccd433ffb59caf1868eddfcd6bcffd6fe

commit 83dbdc9ccd433ffb59caf1868eddfcd6bcffd6fe
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-11-25 14:02:45 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-12-03 17:03:34 +0000

    multimedia/intel-media-sdk: update to 21.4.3
    
    Changes:        https://github.com/Intel-Media-SDK/MediaSDK/compare/intel-mediasdk-21.4.2...intel-mediasdk-21.4.3
---
 multimedia/intel-media-sdk/Makefile             |  2 +-
 multimedia/intel-media-sdk/distinfo             |  6 ++---
 multimedia/intel-media-sdk/files/patch-includes | 29 +++++++++++++++++++++++++
 3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/multimedia/intel-media-sdk/Makefile b/multimedia/intel-media-sdk/Makefile
index e97846106e07..bc27c7a9673b 100644
--- a/multimedia/intel-media-sdk/Makefile
+++ b/multimedia/intel-media-sdk/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	intel-media-sdk
 DISTVERSIONPREFIX=	intel-mediasdk-
-DISTVERSION=	21.4.2
+DISTVERSION=	21.4.3
 CATEGORIES=	multimedia
 
 MAINTAINER=	jbeich@FreeBSD.org
diff --git a/multimedia/intel-media-sdk/distinfo b/multimedia/intel-media-sdk/distinfo
index fda7629a30ee..51a0fa1e69e0 100644
--- a/multimedia/intel-media-sdk/distinfo
+++ b/multimedia/intel-media-sdk/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1636337958
-SHA256 (Intel-Media-SDK-MediaSDK-intel-mediasdk-21.4.2_GH0.tar.gz) = 581036e71bdbbb50b35464a4c40e121f4ce8a938cb7131506c5331cc9e0873b1
-SIZE (Intel-Media-SDK-MediaSDK-intel-mediasdk-21.4.2_GH0.tar.gz) = 11653685
+TIMESTAMP = 1637848965
+SHA256 (Intel-Media-SDK-MediaSDK-intel-mediasdk-21.4.3_GH0.tar.gz) = 2bcf0bfc2cc4f6a0b865d50c08a327d5bca81738b31a40c8f0e4eba12689d63d
+SIZE (Intel-Media-SDK-MediaSDK-intel-mediasdk-21.4.3_GH0.tar.gz) = 11654545
diff --git a/multimedia/intel-media-sdk/files/patch-includes b/multimedia/intel-media-sdk/files/patch-includes
new file mode 100644
index 000000000000..044a6d43f142
--- /dev/null
+++ b/multimedia/intel-media-sdk/files/patch-includes
@@ -0,0 +1,29 @@
+Adjust includes in various places.
+
+samples/sample_encode/src/sample_encode.cpp:1673:52: error: no member named 'ceil' in namespace 'std'
+        pParams->nBitRateMultiplier = (mfxU16)std::ceil(static_cast<double>(maxVal) / mfxU16Limit);
+                                              ~~~~~^
+samples/sample_multi_transcode/src/transcode_utils.cpp:3012:55: error: no member named 'ceil' in namespace 'std'
+        InputParams.nBitRateMultiplier = (mfxU16)std::ceil(static_cast<double>(maxVal) / mfxU16Limit);
+                                                 ~~~~~^
+
+--- samples/sample_encode/src/sample_encode.cpp.orig	2021-11-25 14:02:45 UTC
++++ samples/sample_encode/src/sample_encode.cpp
+@@ -19,6 +19,7 @@ or https://software.intel.com/en-us/media-client-solut
+ 
+ #include "mfx_samples_config.h"
+ 
++#include <cmath>
+ #include <memory>
+ #include "pipeline_encode.h"
+ #include "pipeline_user.h"
+--- samples/sample_multi_transcode/src/transcode_utils.cpp.orig	2021-11-25 14:02:45 UTC
++++ samples/sample_multi_transcode/src/transcode_utils.cpp
+@@ -36,6 +36,7 @@ or https://software.intel.com/en-us/media-client-solut
+ 
+ #include "version.h"
+ 
++#include <cmath>
+ #include <vector>
+ #include <fstream>
+ #include <sstream>