Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
Use checked filter headers with reused FFmpeg caches and reject silently stubbed deinterlacing
Veyra Goal Agent0ac9d39e88cc
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 5a3974df..881e0a0b 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -513,6 +513,9 @@ if(VEYRA_FFMPEG_ROOT AND EXISTS "${VEYRA_FFMPEG_ROOT}/include/libavformat/avformmessage(FATAL_ERROR "Deinterlacing requires the filter prefix; run scripts/ffmpeg/build-deinterlace-module.py and set VEYRA_FFMPEG_ROOT to its prefix (or explicitly disable VEYRA_ENABLE_DEINTERLACE).")endif()target_compile_definitions(veyra_media PRIVATE VEYRA_ENABLE_DEINTERLACE=1)+ # A reused build tree may retain FFMPEG_INCLUDE_DIRS from the pre-filter+ # prefix. Compile against the prefix whose filter headers we just checked.+ target_include_directories(veyra_media BEFORE PRIVATE "${VEYRA_FFMPEG_ROOT}/include")endif()target_include_directories(veyra_media PUBLIC ${FFMPEG_INCLUDE_DIRS})target_link_directories(veyra_media PUBLIC ${FFMPEG_LIBRARY_DIRS})diff --git a/src/media/FFmpegDeinterlacer.cpp b/src/media/FFmpegDeinterlacer.cppindex a5d7174b..7934a422 100644--- a/src/media/FFmpegDeinterlacer.cpp+++ b/src/media/FFmpegDeinterlacer.cpp@@ -10,7 +10,7 @@ extern "C" {#include <libavutil/frame.h>#include <libavutil/error.h>}-#if defined(VEYRA_ENABLE_DEINTERLACE) && __has_include(<libavfilter/avfilter.h>)+#if defined(VEYRA_ENABLE_DEINTERLACE)#define VEYRA_HAS_AVFILTER_HEADERS 1extern "C" {#include <libavfilter/avfilter.h>