# HG changeset patch # User John Donoghue # Date 1649776448 14400 # Node ID d6bc95d7c6afa222a05772bf23b1af5c5a7ca7cd # Parent 4c889ee97f5bc1f58419373911c18d10e3e97af9 add ffmpeg patch * src/ffmpeg-1-fixes.patch: new file * dist-files.mk: add patch diff -r 4c889ee97f5b -r d6bc95d7c6af dist-files.mk --- a/dist-files.mk Tue Apr 12 11:14:07 2022 -0400 +++ b/dist-files.mk Tue Apr 12 11:14:08 2022 -0400 @@ -88,6 +88,7 @@ expat.mk \ faad2-1-fixes.patch \ faad2.mk \ + ffmpeg-1-fixes.patch \ ffmpeg.mk \ fftw.mk \ file-test.c \ diff -r 4c889ee97f5b -r d6bc95d7c6af src/ffmpeg-1-fixes.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ffmpeg-1-fixes.patch Tue Apr 12 11:14:08 2022 -0400 @@ -0,0 +1,45 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +Contains ad hoc patches for cross building. + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tony Theodore +Date: Sun, 25 Apr 2021 19:23:19 +1000 +Subject: [PATCH 1/2] fix windres whitespace handling + + +diff --git a/ffbuild/common.mak b/ffbuild/common.mak +index 1111111..2222222 100644 +--- a/ffbuild/common.mak ++++ b/ffbuild/common.mak +@@ -82,7 +82,7 @@ COMPILE_NVCC = $(call COMPILE,NVCC) + -$(if $(ASMSTRIPFLAGS), $(STRIP) $(ASMSTRIPFLAGS) $@) + + %.o: %.rc +- $(WINDRES) $(IFLAGS) --preprocessor "$(DEPWINDRES) -E -xc-header -DRC_INVOKED $(CC_DEPFLAGS)" -o $@ $< ++ $(WINDRES) $(IFLAGS) --preprocessor "$(DEPWINDRES)" $(addprefix --preprocessor-arg ,-E -xc-header -DRC_INVOKED $(CC_DEPFLAGS)) -o $@ $< + + %.i: %.c + $(CC) $(CCFLAGS) $(CC_E) $< + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Brand +Date: Mon, 4 Apr 2022 00:33:50 +0200 +Subject: [PATCH 2/2] avoid warning: cast from pointer to integer of different + size [-Wpointer-to-int-cast] + +when checking opus + +diff --git a/configure b/configure +index 1111111..2222222 100755 +--- a/configure ++++ b/configure +@@ -1336,7 +1336,7 @@ check_func_headers(){ + done + echo "#include " + for func in $funcs; do +- echo "long check_$func(void) { return (long) $func; }" ++ echo "intptr_t check_$func(void) { return (intptr_t) $func; }" + done + echo "int main(void) { int ret = 0;" + # LTO could optimize out the test functions without this