PR #24842 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24842
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24842.patch

The vsynth sources are tagged center sited and the mpeg2video and mpeg4
encoders require left or top-left siting, so these tests convert the
chroma location when encoding and back when decoding. Fixes FATE with
--disable-swscale.


From 2959d7264620fa7d2ac07609fc99910d3befb078 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
Date: Thu, 1 Oct 2026 17:47:45 +0200
Subject: [PATCH] tests/fate/vcodec: require the scale filter for the mpeg2 and
 mpeg4 tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The vsynth sources are tagged center sited and the mpeg2video and mpeg4
encoders require left or top-left siting, so these tests convert the
chroma location when encoding and back when decoding. Fixes FATE with
--disable-swscale.

Signed-off-by: Kacper Michajłow <[email protected]>
---
 tests/fate/vcodec.mak | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak
index 190ff7de19..68270766e1 100644
--- a/tests/fate/vcodec.mak
+++ b/tests/fate/vcodec.mak
@@ -263,14 +263,14 @@ fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 
3 -ps 200
 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
 
 FATE_MPEG2 := mpeg2                                                     \
-              $(if $(CONFIG_SCALE_FILTER), mpeg2-422)                   \
+             mpeg2-422                                                  \
              mpeg2-idct-int                                             \
              mpeg2-ilace                                                \
              mpeg2-ivlc-qprd                                            \
              mpeg2-thread                                               \
              mpeg2-thread-ivlc
 
-FATE_VCODEC-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += $(FATE_MPEG2)
+FATE_VCODEC_SCALE-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += 
$(FATE_MPEG2)
 
 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
@@ -309,8 +309,8 @@ FATE_MPEG4_AVI = mpeg4-rc                                   
            \
                  mpeg4-nr                                               \
                  mpeg4-nsse
 
-FATE_VCODEC-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
-FATE_VCODEC-$(call ENCDEC, MPEG4, AVI)     += $(FATE_MPEG4_AVI)
+FATE_VCODEC_SCALE-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
+FATE_VCODEC_SCALE-$(call ENCDEC, MPEG4, AVI)     += $(FATE_MPEG4_AVI)
 
 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
 fate-vsynth%-mpeg4:              FMT     = mp4
@@ -324,7 +324,7 @@ fate-vsynth%-mpeg4-adap:         ENCOPTS = 
$(MPEG4_ADAP_OPTS)
 
 # This is the same test as fate-vsynth%-mpeg4-adap but with an input padded
 # so the encoder can use it without copy.
-FATE_VCODEC_LAYOUT-$(call ENCDEC, MPEG4, AVI, PAD_FILTER CROP_FILTER) += \
+FATE_VCODEC_LAYOUT-$(call ENCDEC, MPEG4, AVI, PAD_FILTER CROP_FILTER 
SCALE_FILTER) += \
     fate-vsynth1-mpeg4-layout fate-vsynth1-mpeg4-layout-ref
 fate-vsynth%-mpeg4-layout:       ENCOPTS = -vf 
pad=384:288:0:0,crop=352:288:0:0 \
                                            $(MPEG4_ADAP_OPTS)
-- 
2.52.0

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

Reply via email to