diff mbox series

[FFmpeg-devel] configure: don't warn deprecated symbols from libvpl

Message ID 20231127081152.2437803-1-haihao.xiang@intel.com
State Accepted
Commit 5717fbbea262a028bcfa751e6c0e6798284dfade
Headers show
Series [FFmpeg-devel] configure: don't warn deprecated symbols from libvpl | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Xiang, Haihao Nov. 27, 2023, 8:11 a.m. UTC
From: Haihao Xiang <haihao.xiang@intel.com>

libvpl deprecated some symbols (e.g. MFX_EXTBUFF_VPP_DENOISE2 is used to
replace MFX_EXTBUFF_VPP_DENOISE), however the new symbols aren't support
by MediaSDK runtime. In order to support the combination of libvpl and
MediaSDK runtime on legacy devices, we continue to use the deprecated
symbols in FFmpeg. This patch added -DMFX_DEPRECATED_OFF to CFLAGS to
silence the corresponding compilation warnings.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

Xiang, Haihao Dec. 4, 2023, 4:21 a.m. UTC | #1
On Ma, 2023-11-27 at 16:11 +0800, Xiang, Haihao wrote:
> From: Haihao Xiang <haihao.xiang@intel.com>
> 
> libvpl deprecated some symbols (e.g. MFX_EXTBUFF_VPP_DENOISE2 is used to
> replace MFX_EXTBUFF_VPP_DENOISE), however the new symbols aren't support
> by MediaSDK runtime. In order to support the combination of libvpl and
> MediaSDK runtime on legacy devices, we continue to use the deprecated
> symbols in FFmpeg. This patch added -DMFX_DEPRECATED_OFF to CFLAGS to
> silence the corresponding compilation warnings.
> 
> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure b/configure
> index 838e627084..d77c053226 100755
> --- a/configure
> +++ b/configure
> @@ -6776,6 +6776,7 @@ elif enabled libvpl; then
>  # is extracted from "vpl >= 2.6"
>      check_pkg_config libmfx "vpl >= 2.6" "mfxvideo.h mfxdispatcher.h" MFXLoad
> || \
>              die "ERROR: libvpl >= 2.6 not found"
> +    add_cflags -DMFX_DEPRECATED_OFF
>  fi
>  
>  if enabled libmfx; then

Will apply,

Thanks
Haihao
diff mbox series

Patch

diff --git a/configure b/configure
index 838e627084..d77c053226 100755
--- a/configure
+++ b/configure
@@ -6776,6 +6776,7 @@  elif enabled libvpl; then
 # is extracted from "vpl >= 2.6"
     check_pkg_config libmfx "vpl >= 2.6" "mfxvideo.h mfxdispatcher.h" MFXLoad || \
             die "ERROR: libvpl >= 2.6 not found"
+    add_cflags -DMFX_DEPRECATED_OFF
 fi
 
 if enabled libmfx; then