PR #22529 opened by toots URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22529 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22529.patch
>From 8791831699d7436b737fc996de92a6e1e9878f7b Mon Sep 17 00:00:00 2001 From: Romain Beauxis <[email protected]> Date: Tue, 17 Mar 2026 09:22:36 -0500 Subject: [PATCH 1/2] tests/fate-run: add run_with_prereq helper --- tests/fate-run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index cd66cd059c..fc713cae07 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -103,6 +103,16 @@ runecho(){ $target_exec $target_path/"$@" >&3 } +run_with_prereq(){ + prereq=$1 + shift + if ! run $prereq >/dev/null 2>&1; then + cmp=null + return 0 + fi + "$@" +} + run_with_temp(){ create_tmp=$1 process_tmp=$2 -- 2.52.0 >From a8689b3f3a1b81c4190504e8dd89f716395ac791 Mon Sep 17 00:00:00 2001 From: Romain Beauxis <[email protected]> Date: Tue, 17 Mar 2026 09:22:45 -0500 Subject: [PATCH 2/2] tests/fate/filter-video: skip frei0r tests if plugin is unavailable at runtime --- tests/fate/filter-video.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 066018a395..ee711ace1c 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -730,8 +730,8 @@ $(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm FATE_FFMPEG += $(FATE_FILTER_VSYNTH-yes) FATE_FILTER_FREI0R-$(call FILTERFRAMECRC, TESTSRC2, FREI0R_FILTER) = fate-filter-frei0r-filter fate-filter-frei0r-filter-unaligned -fate-filter-frei0r-filter: CMD = framecrc -lavfi "testsrc2=r=1:d=5,frei0r=enable=gte(n\,3):filter_name=distort0r" -fate-filter-frei0r-filter-unaligned: CMD = framecrc -lavfi "testsrc2=s=328x240:r=1:d=5,frei0r=filter_name=distort0r" +fate-filter-frei0r-filter: CMD = run_with_prereq "$(FFMPEG) -lavfi nullsrc,frei0r=filter_name=distort0r -frames:v 0 -f null -" framecrc -lavfi "testsrc2=r=1:d=5,frei0r=enable=gte(n\,3):filter_name=distort0r" +fate-filter-frei0r-filter-unaligned: CMD = run_with_prereq "$(FFMPEG) -lavfi nullsrc,frei0r=filter_name=distort0r -frames:v 0 -f null -" framecrc -lavfi "testsrc2=s=328x240:r=1:d=5,frei0r=filter_name=distort0r" FATE_FFMPEG += $(FATE_FILTER_FREI0R-yes) # -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
