PR #24195 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24195
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24195.patch

This is possible because it only uses the public API;
and beneficial when using shared builds (as not all
the internals of lavf are linked statically in the binary).



>From a1d860a00de25191666b16cdff0517b2bccb6f6f Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Mon, 17 Aug 2026 21:06:01 +0200
Subject: [PATCH] avformat/tests/movenc: Convert to API test tool

This is possible because it only uses the public API;
and beneficial when using shared builds (as not all
the internals of lavf are linked statically in the binary).

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavformat/Makefile                                      | 1 -
 libavformat/tests/.gitignore                              | 1 -
 tests/api/Makefile                                        | 1 +
 libavformat/tests/movenc.c => tests/api/api-movenc-test.c | 0
 tests/fate/api.mak                                        | 4 ++++
 tests/fate/libavformat.mak                                | 4 ----
 tests/ref/fate/{movenc => api-movenc}                     | 0
 7 files changed, 5 insertions(+), 6 deletions(-)
 rename libavformat/tests/movenc.c => tests/api/api-movenc-test.c (100%)
 rename tests/ref/fate/{movenc => api-movenc} (100%)

diff --git a/libavformat/Makefile b/libavformat/Makefile
index 45084227a6..466f5d1894 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -790,7 +790,6 @@ TESTPROGS = id3v2                                           
            \
 FIFO-MUXER-TESTPROGS-$(CONFIG_NETWORK)   += fifo_muxer
 TESTPROGS-$(CONFIG_FIFO_MUXER)           += $(FIFO-MUXER-TESTPROGS-yes)
 TESTPROGS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh
-TESTPROGS-$(CONFIG_MOV_MUXER)            += movenc
 TESTPROGS-$(CONFIG_NETWORK)              += noproxy
 TESTPROGS-$(CONFIG_SRTP)                 += srtp
 TESTPROGS-$(CONFIG_IMF_DEMUXER)          += imf
diff --git a/libavformat/tests/.gitignore b/libavformat/tests/.gitignore
index 951ccf0f37..34a62eca97 100644
--- a/libavformat/tests/.gitignore
+++ b/libavformat/tests/.gitignore
@@ -2,7 +2,6 @@
 /fifo_muxer
 /imf
 /mkdir
-/movenc
 /noproxy
 /rtmpdh
 /seek
diff --git a/tests/api/Makefile b/tests/api/Makefile
index 987db1b785..92b3e11e95 100644
--- a/tests/api/Makefile
+++ b/tests/api/Makefile
@@ -1,6 +1,7 @@
 APITESTPROGS-$(call ENCDEC, FLAC, FLAC) += api-flac
 APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264
 APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264-slice
+APITESTPROGS-$(CONFIG_MOV_MUXER)        += api-movenc
 APITESTPROGS-yes += api-seek api-dump-stream-meta
 APITESTPROGS-$(call DEMDEC, H263, H263) += api-band
 APITESTPROGS-$(HAVE_THREADS) += api-threadmessage
diff --git a/libavformat/tests/movenc.c b/tests/api/api-movenc-test.c
similarity index 100%
rename from libavformat/tests/movenc.c
rename to tests/api/api-movenc-test.c
diff --git a/tests/fate/api.mak b/tests/fate/api.mak
index ba9789d9f7..4c0f51c4fc 100644
--- a/tests/fate/api.mak
+++ b/tests/fate/api.mak
@@ -29,6 +29,10 @@ fate-lavf-flv: CMP =
 fate-api-seek: CMD = run $(APITESTSDIR)/api-seek-test$(EXESUF) 
$(TARGET_PATH)/tests/data/lavf/lavf.flv 0 720
 fate-api-seek: CMP = null
 
+FATE_API_LIBAVFORMAT-$(call ALLYES, MP4_MUXER ISMV_MUXER) += fate-api-movenc
+fate-api-movenc: $(APITESTSDIR)/api-movenc-test$(EXESUF)
+fate-api-movenc: CMD = run $(APITESTSDIR)/api-movenc-test$(EXESUF)
+
 FATE_API-$(HAVE_THREADS) += fate-api-threadmessage
 fate-api-threadmessage: $(APITESTSDIR)/api-threadmessage-test$(EXESUF)
 fate-api-threadmessage: CMD = run 
$(APITESTSDIR)/api-threadmessage-test$(EXESUF) 3 10 30 50 2 20 40
diff --git a/tests/fate/libavformat.mak b/tests/fate/libavformat.mak
index 7bd20cf9c8..09649fed11 100644
--- a/tests/fate/libavformat.mak
+++ b/tests/fate/libavformat.mak
@@ -28,10 +28,6 @@ FATE_LIBAVFORMAT-yes += fate-url
 fate-url: libavformat/tests/url$(EXESUF)
 fate-url: CMD = run libavformat/tests/url$(EXESUF)
 
-FATE_LIBAVFORMAT-$(call ALLYES, MP4_MUXER ISMV_MUXER) += fate-movenc
-fate-movenc: libavformat/tests/movenc$(EXESUF)
-fate-movenc: CMD = run libavformat/tests/movenc$(EXESUF)
-
 FATE_LIBAVFORMAT-$(CONFIG_IMF_DEMUXER) += fate-imf
 fate-imf: libavformat/tests/imf$(EXESUF)
 fate-imf: CMD = run libavformat/tests/imf$(EXESUF)
diff --git a/tests/ref/fate/movenc b/tests/ref/fate/api-movenc
similarity index 100%
rename from tests/ref/fate/movenc
rename to tests/ref/fate/api-movenc
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to