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.
Unified · Split
| @@ -6776,6 +6776,7 @@ elif enabled libvpl; then · 6775 unmodified lines | ||
| 6776 | 6776 | # is extracted from "vpl >= 2.6" |
| 6777 | 6777 | check_pkg_config libmfx "vpl >= 2.6" "mfxvideo.h mfxdispatcher.h" MFXLoad || \ |
| 6778 | 6778 | die "ERROR: libvpl >= 2.6 not found" |
| 6779 | + add_cflags -DMFX_DEPRECATED_OFF | |
| 6779 | 6780 | fi |
| 6780 | 6781 | |
| 6781 | 6782 | if enabled libmfx; then |