From: byteskeptical Subject: Re: graphics/ffmpeg: update to 6.1.3 To: brad@comstyle.com, OpenBSD Ports Date: Mon, 1 Sep 2025 02:47:38 +0000 Reply-To: byteskeptical Hi Ports, Tested working on my setup as well. If there's interest, I'm providing a merged version with vulkan support from a previous submission a while back. I've been running and testing it for the last few days on my -current/amd64 box. With AV1 support now available it would be nice to provide the supported devices the performance improvement when possible. Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v retrieving revision 1.246 diff -u -p -u -p -r1.246 Makefile --- Makefile 24 May 2025 00:26:53 -0000 1.246 +++ Makefile 1 Sep 2025 02:45:41 -0000 @@ -1,8 +1,7 @@ COMMENT= audio/video converter and streamer -V= 6.1.2 +V= 6.1.3 DISTNAME= ffmpeg-${V} -REVISION= 3 EPOCH= 1 CATEGORIES= graphics multimedia SITES= https://ffmpeg.org/releases/ @@ -27,11 +26,11 @@ MAINTAINER= Brad Smith On Sat, 23 Aug 2025 00:53:42 +0200, >Kirill A. Korinsky wrote: >> >> Brad, >> >> I'd like to update graphics/ffmpeg to 6.1.3. >> >> It was tested on -current/amd64 and -current/arm64, no regression. >> >> Also, riscv and yuv2rgb_altivec related patched is included into this >> release. >> > >My bulk build on amd64 is finished. Here updated diff which includes >increase used version of ffmpeg in x11/mplayer. > >It ends as: > >Elapsed time=2 days 18:21:28 >I=11935 B=43 Q=0 T=240 F=0 !=104 >L=x11/eterm >E=math/wxMaxima editors/abiword editors/le games/openmw games/scorched3d games/zelda3-data graphics/enblend-enfuse lang/apl x11/eterm,kanji www/iridium audio/xmms2 databases/mongodb/44! x11/qt6/qtwebengine! x11/ogre games/xye lang/v multimedia/sfml games/zelda3-rom > >almost all errors related do libc++, with exception of math/wxMaxima which >probably fixed by not commited yet updated. > >Ok? > >Index: x11/mplayer/Makefile >=================================================================== >RCS file: /home/cvs/ports/x11/mplayer/Makefile,v >diff -u -p -r1.334 Makefile >--- x11/mplayer/Makefile 19 Feb 2025 05:43:13 -0000 1.334 >+++ x11/mplayer/Makefile 28 Aug 2025 14:18:00 -0000 >@@ -1,9 +1,9 @@ > COMMENT= movie player supporting many formats > > V= 20240803 >-FFMPEG_V= 6.1.2 >+FFMPEG_V= 6.1.3 > DISTNAME= mplayer-${V} >-REVISION= 2 >+REVISION= 3 > CATEGORIES= x11 multimedia > SITES= https://comstyle.com/source/ > EXTRACT_SUFX= .tar.xz >Index: graphics/ffmpeg/Makefile >=================================================================== >RCS file: /home/cvs/ports/graphics/ffmpeg/Makefile,v >diff -u -p -r1.246 Makefile >--- graphics/ffmpeg/Makefile 24 May 2025 00:26:53 -0000 1.246 >+++ graphics/ffmpeg/Makefile 28 Aug 2025 14:20:03 -0000 >@@ -1,8 +1,8 @@ > COMMENT= audio/video converter and streamer > >-V= 6.1.2 >+# keep it synced with x11/mplayer >+V= 6.1.3 > DISTNAME= ffmpeg-${V} >-REVISION= 3 > EPOCH= 1 > CATEGORIES= graphics multimedia > SITES= https://ffmpeg.org/releases/ >Index: graphics/ffmpeg/distinfo >=================================================================== >RCS file: /home/cvs/ports/graphics/ffmpeg/distinfo,v >diff -u -p -r1.68 distinfo >--- graphics/ffmpeg/distinfo 24 Nov 2024 08:50:45 -0000 1.68 >+++ graphics/ffmpeg/distinfo 23 Aug 2025 09:56:12 -0000 >@@ -1,2 +1,2 @@ >-SHA256 (ffmpeg-6.1.2.tar.xz) = O2JGSXJezcVlyQPKZkPUHzO9SSOZIuRcmxRCxj3KTjg= >-SIZE (ffmpeg-6.1.2.tar.xz) = 10466152 >+SHA256 (ffmpeg-6.1.3.tar.xz) = vF8eSk0oOmSSNUaE7hEkEpxSKTvPxqkWkZNTn77ONIc= >+SIZE (ffmpeg-6.1.3.tar.xz) = 10473704 >Index: graphics/ffmpeg/patches/patch-Makefile >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-Makefile >diff -N graphics/ffmpeg/patches/patch-Makefile >--- graphics/ffmpeg/patches/patch-Makefile 3 Dec 2024 12:50:29 -0000 1.10 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,20 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: Makefile >---- Makefile.orig >-+++ Makefile >-@@ -93,10 +93,10 @@ ffbuild/.config: $(CONFIGURABLE_COMPONENTS) >- SUBDIR_VARS := CLEANFILES FFLIBS HOSTPROGS TESTPROGS TOOLS \ >- HEADERS ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \ >- ARMV5TE-OBJS ARMV6-OBJS ARMV8-OBJS VFP-OBJS NEON-OBJS \ >-- ALTIVEC-OBJS VSX-OBJS RVV-OBJS MMX-OBJS X86ASM-OBJS \ >-+ ALTIVEC-OBJS VSX-OBJS MMX-OBJS X86ASM-OBJS \ >- MIPSFPU-OBJS MIPSDSPR2-OBJS MIPSDSP-OBJS MSA-OBJS \ >-- MMI-OBJS LSX-OBJS LASX-OBJS OBJS SLIBOBJS SHLIBOBJS \ >-- STLIBOBJS HOSTOBJS TESTOBJS >-+ MMI-OBJS LSX-OBJS LASX-OBJS RV-OBJS RVV-OBJS \ >-+ OBJS SLIBOBJS SHLIBOBJS STLIBOBJS HOSTOBJS TESTOBJS >- >- define RESET >- $(1) := >Index: graphics/ffmpeg/patches/patch-configure >=================================================================== >RCS file: /home/cvs/ports/graphics/ffmpeg/patches/patch-configure,v >diff -u -p -r1.75 patch-configure >--- graphics/ffmpeg/patches/patch-configure 3 Dec 2024 12:50:29 -0000 1.75 >+++ graphics/ffmpeg/patches/patch-configure 23 Aug 2025 09:56:12 -0000 >@@ -1,28 +1,12 @@ > - aarch64: Implement support for elf_aux_info(3) on FreeBSD and OpenBSD > a3f79fd22a367207097c78e0a5d2bc213efe9f80 >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >-- lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang > > - Fix broken libatomic test > > Index: configure > --- configure.orig > +++ configure >-@@ -2146,10 +2146,12 @@ ARCH_EXT_LIST_PPC=" >- ldbrx >- power8 >- ppc4xx >-+ vec_xl >- vsx >- " >- >- ARCH_EXT_LIST_RISCV=" >-+ rv >- rvv >- " >- >-@@ -2296,6 +2298,7 @@ SYSTEM_FUNCS=" >+@@ -2300,6 +2300,7 @@ SYSTEM_FUNCS=" > clock_gettime > closesocket > CommandLineToArgvW >@@ -30,19 +14,7 @@ Index: configure > fcntl > getaddrinfo > getauxval >-@@ -2674,9 +2677,11 @@ altivec_deps="ppc" >- dcbzl_deps="ppc" >- ldbrx_deps="ppc" >- ppc4xx_deps="ppc" >-+vec_xl_deps="altivec" >- vsx_deps="altivec" >- power8_deps="vsx" >- >-+rv_deps="riscv" >- rvv_deps="riscv" >- >- loongson2_deps="mips" >-@@ -5598,7 +5603,6 @@ case $target_os in >+@@ -5607,7 +5608,6 @@ case $target_os in > enable section_data_rel_ro > striptype="" > SHFLAGS='-shared' >@@ -50,7 +22,7 @@ Index: configure > SLIB_INSTALL_LINKS= > oss_indev_extralibs="-lossaudio" > oss_outdev_extralibs="-lossaudio" >-@@ -5959,7 +5963,7 @@ set_default libdir >+@@ -5968,7 +5968,7 @@ set_default libdir > set_default $PATHS_LIST > set_default nm > >@@ -59,22 +31,7 @@ Index: configure > > enable_weak_pic() { > disabled pic && return >-@@ -6215,8 +6219,14 @@ elif enabled ppc; then >- check_cpp_condition power8 "altivec.h" "defined(_ARCH_PWR8)" >- fi >- >-+ if enabled altivec && disabled vsx; then >-+ check_cc vec_xl altivec.h "const unsigned char *y1i = { 0 }; >-+ vector unsigned char y0 = vec_xl(0, y1i);" >-+ fi >-+ >- elif enabled riscv; then >- >-+ enabled rv && check_inline_asm rv '".option arch, +zbb\nrev8 t0, t1"' >- enabled rvv && check_inline_asm rvv '".option arch, +v\nvsetivli zero, 0, e8, m1, ta, ma"' >- >- elif enabled x86; then >-@@ -6417,6 +6427,7 @@ check_func_headers mach/mach_time.h mach_absolute_time >+@@ -6432,6 +6432,7 @@ check_func_headers mach/mach_time.h mach_absolute_time > check_func_headers stdlib.h getenv > check_func_headers sys/stat.h lstat > check_func_headers sys/auxv.h getauxval >@@ -82,7 +39,7 @@ Index: configure > check_func_headers sys/sysctl.h sysctlbyname > > check_func_headers windows.h GetModuleHandle >-@@ -6483,7 +6494,7 @@ check_headers asm/types.h >+@@ -6498,7 +6499,7 @@ check_headers asm/types.h > # > # some configurations also require linking to libatomic, so try > # both with -latomic and without >@@ -91,11 +48,3 @@ Index: configure > check_builtin stdatomic stdatomic.h \ > "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar" \ > $LATOMIC && eval stdatomic_extralibs="\$LATOMIC" && break >-@@ -7748,6 +7759,7 @@ if enabled ppc; then >- echo "POWER8 enabled ${power8-no}" >- echo "PPC 4xx optimizations ${ppc4xx-no}" >- echo "dcbzl available ${dcbzl-no}" >-+ echo "vec_xl available ${vec_xl-no}" >- fi >- if enabled loongarch; then >- echo "LSX enabled ${lsx-no}" >Index: graphics/ffmpeg/patches/patch-ffbuild_arch_mak >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-ffbuild_arch_mak >diff -N graphics/ffmpeg/patches/patch-ffbuild_arch_mak >--- graphics/ffmpeg/patches/patch-ffbuild_arch_mak 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,14 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: ffbuild/arch.mak >---- ffbuild/arch.mak.orig >-+++ ffbuild/arch.mak >-@@ -15,6 +15,7 @@ OBJS-$(HAVE_LASX) += $(LASX-OBJS) $(LASX-OB >- OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS) $(ALTIVEC-OBJS-yes) >- OBJS-$(HAVE_VSX) += $(VSX-OBJS) $(VSX-OBJS-yes) >- >-+OBJS-$(HAVE_RV) += $(RV-OBJS) $(RV-OBJS-yes) >- OBJS-$(HAVE_RVV) += $(RVV-OBJS) $(RVV-OBJS-yes) >- >- OBJS-$(HAVE_MMX) += $(MMX-OBJS) $(MMX-OBJS-yes) >Index: graphics/ffmpeg/patches/patch-libavcodec_riscv_Makefile >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libavcodec_riscv_Makefile >diff -N graphics/ffmpeg/patches/patch-libavcodec_riscv_Makefile >--- graphics/ffmpeg/patches/patch-libavcodec_riscv_Makefile 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,38 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libavcodec/riscv/Makefile >---- libavcodec/riscv/Makefile.orig >-+++ libavcodec/riscv/Makefile >-@@ -1,14 +1,14 @@ >- OBJS-$(CONFIG_AAC_DECODER) += riscv/aacpsdsp_init.o >- RVV-OBJS-$(CONFIG_AAC_DECODER) += riscv/aacpsdsp_rvv.o >--OBJS-$(CONFIG_AC3DSP) += riscv/ac3dsp_init.o \ >-- riscv/ac3dsp_rvb.o >-+OBJS-$(CONFIG_AC3DSP) += riscv/ac3dsp_init.o >-+RV-OBJS-$(CONFIG_AC3DSP) += riscv/ac3dsp_rvb.o >- OBJS-$(CONFIG_ALAC_DECODER) += riscv/alacdsp_init.o >- RVV-OBJS-$(CONFIG_ALAC_DECODER) += riscv/alacdsp_rvv.o >--OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_init.o \ >-- riscv/audiodsp_rvf.o >-+OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_init.o >-+RV-OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_rvf.o >- RVV-OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_rvv.o >--OBJS-$(CONFIG_BSWAPDSP) += riscv/bswapdsp_init.o \ >-- riscv/bswapdsp_rvb.o >-+OBJS-$(CONFIG_BSWAPDSP) += riscv/bswapdsp_init.o >-+RV-OBJS-$(CONFIG_BSWAPDSP) += riscv/bswapdsp_rvb.o >- RVV-OBJS-$(CONFIG_BSWAPDSP) += riscv/bswapdsp_rvv.o >- OBJS-$(CONFIG_EXR_DECODER) += riscv/exrdsp_init.o >- RVV-OBJS-$(CONFIG_EXR_DECODER) += riscv/exrdsp_rvv.o >-@@ -22,8 +22,8 @@ OBJS-$(CONFIG_IDCTDSP) += riscv/idctdsp_init.o >- RVV-OBJS-$(CONFIG_IDCTDSP) += riscv/idctdsp_rvv.o >- OBJS-$(CONFIG_OPUS_DECODER) += riscv/opusdsp_init.o >- RVV-OBJS-$(CONFIG_OPUS_DECODER) += riscv/opusdsp_rvv.o >--OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_init.o \ >-- riscv/pixblockdsp_rvi.o >-+OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_init.o >-+RV-OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_rvi.o >- RVV-OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_rvv.o >- OBJS-$(CONFIG_VORBIS_DECODER) += riscv/vorbisdsp_init.o >- RVV-OBJS-$(CONFIG_VORBIS_DECODER) += riscv/vorbisdsp_rvv.o >Index: graphics/ffmpeg/patches/patch-libavcodec_riscv_ac3dsp_init_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libavcodec_riscv_ac3dsp_init_c >diff -N graphics/ffmpeg/patches/patch-libavcodec_riscv_ac3dsp_init_c >--- graphics/ffmpeg/patches/patch-libavcodec_riscv_ac3dsp_init_c 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,19 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libavcodec/riscv/ac3dsp_init.c >---- libavcodec/riscv/ac3dsp_init.c.orig >-+++ libavcodec/riscv/ac3dsp_init.c >-@@ -29,10 +29,12 @@ void ff_extract_exponents_rvb(uint8_t *exp, int32_t *c >- >- av_cold void ff_ac3dsp_init_riscv(AC3DSPContext *c) >- { >-+#if HAVE_RV >- int flags = av_get_cpu_flags(); >- >- if (flags & AV_CPU_FLAG_RVB_ADDR) { >- if (flags & AV_CPU_FLAG_RVB_BASIC) >- c->extract_exponents = ff_extract_exponents_rvb; >- } >-+#endif >- } >Index: graphics/ffmpeg/patches/patch-libavcodec_riscv_audiodsp_init_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libavcodec_riscv_audiodsp_init_c >diff -N graphics/ffmpeg/patches/patch-libavcodec_riscv_audiodsp_init_c >--- graphics/ffmpeg/patches/patch-libavcodec_riscv_audiodsp_init_c 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,21 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libavcodec/riscv/audiodsp_init.c >---- libavcodec/riscv/audiodsp_init.c.orig >-+++ libavcodec/riscv/audiodsp_init.c >-@@ -33,6 +33,7 @@ void ff_vector_clipf_rvv(float *dst, const float *src, >- >- av_cold void ff_audiodsp_init_riscv(AudioDSPContext *c) >- { >-+#if HAVE_RV >- int flags = av_get_cpu_flags(); >- >- if (flags & AV_CPU_FLAG_RVF) >-@@ -46,5 +47,6 @@ av_cold void ff_audiodsp_init_riscv(AudioDSPContext *c >- if (flags & AV_CPU_FLAG_RVV_F32) >- c->vector_clipf = ff_vector_clipf_rvv; >- } >-+#endif >- #endif >- } >Index: graphics/ffmpeg/patches/patch-libavcodec_riscv_bswapdsp_init_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libavcodec_riscv_bswapdsp_init_c >diff -N graphics/ffmpeg/patches/patch-libavcodec_riscv_bswapdsp_init_c >--- graphics/ffmpeg/patches/patch-libavcodec_riscv_bswapdsp_init_c 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,20 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libavcodec/riscv/bswapdsp_init.c >---- libavcodec/riscv/bswapdsp_init.c.orig >-+++ libavcodec/riscv/bswapdsp_init.c >-@@ -30,6 +30,7 @@ void ff_bswap16_buf_rvv(uint16_t *dst, const uint16_t >- >- av_cold void ff_bswapdsp_init_riscv(BswapDSPContext *c) >- { >-+#if HAVE_RV >- int flags = av_get_cpu_flags(); >- >- if (flags & AV_CPU_FLAG_RVB_ADDR) { >-@@ -42,4 +43,5 @@ av_cold void ff_bswapdsp_init_riscv(BswapDSPContext *c >- c->bswap16_buf = ff_bswap16_buf_rvv; >- #endif >- } >-+#endif >- } >Index: graphics/ffmpeg/patches/patch-libavcodec_riscv_pixblockdsp_init_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libavcodec_riscv_pixblockdsp_init_c >diff -N graphics/ffmpeg/patches/patch-libavcodec_riscv_pixblockdsp_init_c >--- graphics/ffmpeg/patches/patch-libavcodec_riscv_pixblockdsp_init_c 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,21 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libavcodec/riscv/pixblockdsp_init.c >---- libavcodec/riscv/pixblockdsp_init.c.orig >-+++ libavcodec/riscv/pixblockdsp_init.c >-@@ -43,6 +43,7 @@ av_cold void ff_pixblockdsp_init_riscv(PixblockDSPCont >- AVCodecContext *avctx, >- unsigned high_bit_depth) >- { >-+#if HAVE_RV >- int cpu_flags = av_get_cpu_flags(); >- >- if (cpu_flags & AV_CPU_FLAG_RVI) { >-@@ -61,5 +62,6 @@ av_cold void ff_pixblockdsp_init_riscv(PixblockDSPCont >- >- c->diff_pixels_unaligned = c->diff_pixels = ff_diff_pixels_rvv; >- } >-+#endif >- #endif >- } >Index: graphics/ffmpeg/patches/patch-libswscale_ppc_yuv2rgb_altivec_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libswscale_ppc_yuv2rgb_altivec_c >diff -N graphics/ffmpeg/patches/patch-libswscale_ppc_yuv2rgb_altivec_c >--- graphics/ffmpeg/patches/patch-libswscale_ppc_yuv2rgb_altivec_c 24 Nov 2024 08:50:45 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,23 +0,0 @@ >-- lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang >- >-Index: libswscale/ppc/yuv2rgb_altivec.c >---- libswscale/ppc/yuv2rgb_altivec.c.orig >-+++ libswscale/ppc/yuv2rgb_altivec.c >-@@ -284,7 +284,7 @@ static inline void cvtyuvtoRGB(SwsContext *c, vector s >- * ------------------------------------------------------------------------------ >- */ >- >--#if !HAVE_VSX >-+#if !HAVE_VEC_XL >- static inline vector unsigned char vec_xl(signed long long offset, const ubyte *addr) >- { >- const vector unsigned char *v_addr = (const vector unsigned char *) (addr + offset); >-@@ -292,7 +292,7 @@ static inline vector unsigned char vec_xl(signed long >- >- return (vector unsigned char) vec_perm(v_addr[0], v_addr[1], align_perm); >- } >--#endif /* !HAVE_VSX */ >-+#endif /* !HAVE_VEC_XL */ >- >- #define DEFCSP420_CVT(name, out_pixels) \ >- static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ >Index: graphics/ffmpeg/patches/patch-libswscale_riscv_Makefile >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libswscale_riscv_Makefile >diff -N graphics/ffmpeg/patches/patch-libswscale_riscv_Makefile >--- graphics/ffmpeg/patches/patch-libswscale_riscv_Makefile 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,11 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libswscale/riscv/Makefile >---- libswscale/riscv/Makefile.orig >-+++ libswscale/riscv/Makefile >-@@ -1,3 +1,3 @@ >- OBJS += riscv/rgb2rgb.o >--OBJS += riscv/rgb2rgb_rvb.o >-+RV-OBJS += riscv/rgb2rgb_rvb.o >- RVV-OBJS += riscv/rgb2rgb_rvv.o >Index: graphics/ffmpeg/patches/patch-libswscale_riscv_rgb2rgb_c >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-libswscale_riscv_rgb2rgb_c >diff -N graphics/ffmpeg/patches/patch-libswscale_riscv_rgb2rgb_c >--- graphics/ffmpeg/patches/patch-libswscale_riscv_rgb2rgb_c 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,21 +0,0 @@ >-- riscv: test for assembler support >- b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 >- >-Index: libswscale/riscv/rgb2rgb.c >---- libswscale/riscv/rgb2rgb.c.orig >-+++ libswscale/riscv/rgb2rgb.c >-@@ -42,6 +42,7 @@ void ff_yuyvtoyuv422_rvv(uint8_t *ydst, uint8_t *udst, >- >- av_cold void rgb2rgb_init_riscv(void) >- { >-+#if HAVE_RV >- int flags = av_get_cpu_flags(); >- >- #if (__riscv_xlen == 64) >-@@ -58,5 +59,6 @@ av_cold void rgb2rgb_init_riscv(void) >- uyvytoyuv422 = ff_uyvytoyuv422_rvv; >- yuyvtoyuv422 = ff_yuyvtoyuv422_rvv; >- } >-+#endif >- #endif >- } >Index: graphics/ffmpeg/patches/patch-tests_checkasm_Makefile >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-tests_checkasm_Makefile >diff -N graphics/ffmpeg/patches/patch-tests_checkasm_Makefile >--- graphics/ffmpeg/patches/patch-tests_checkasm_Makefile 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,12 +0,0 @@ >-Index: tests/checkasm/Makefile >---- tests/checkasm/Makefile.orig >-+++ tests/checkasm/Makefile >-@@ -66,7 +66,7 @@ CHECKASMOBJS-$(CONFIG_AVUTIL) += $(AVUTILOBJS) >- >- CHECKASMOBJS-$(ARCH_AARCH64) += aarch64/checkasm.o >- CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL) += arm/checkasm.o >--CHECKASMOBJS-$(ARCH_RISCV) += riscv/checkasm.o >-+CHECKASMOBJS-$(HAVE_RV) += riscv/checkasm.o >- CHECKASMOBJS-$(HAVE_X86ASM) += x86/checkasm.o >- >- CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o >Index: graphics/ffmpeg/patches/patch-tests_checkasm_checkasm_h >=================================================================== >RCS file: graphics/ffmpeg/patches/patch-tests_checkasm_checkasm_h >diff -N graphics/ffmpeg/patches/patch-tests_checkasm_checkasm_h >--- graphics/ffmpeg/patches/patch-tests_checkasm_checkasm_h 3 Dec 2024 12:50:29 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,19 +0,0 @@ >-Index: tests/checkasm/checkasm.h >---- tests/checkasm/checkasm.h.orig >-+++ tests/checkasm/checkasm.h >-@@ -212,11 +212,14 @@ void checkasm_checked_call(void *func, ...); >- void checkasm_set_function(void *); >- void *checkasm_get_wrapper(void); >- >--#if (__riscv_xlen == 64) && defined (__riscv_d) >-+#if HAVE_RV && (__riscv_xlen == 64) && defined (__riscv_d) >- #define declare_new(ret, ...) \ >- ret (*checked_call)(__VA_ARGS__) = checkasm_get_wrapper(); >- #define call_new(...) \ >- (checkasm_set_function(func_new), checked_call(__VA_ARGS__)) >-+#else >-+#define declare_new(ret, ...) >-+#define call_new(...) ((func_type *)func_new)(__VA_ARGS__) >- #endif >- #else >- #define declare_new(ret, ...) > -- All desire is the desire to be desired by the subject presumed to know.