Skip to content

Commit f612581

Browse files
author
Andrea Medeghini
committed
Created patches for ffmpeg
1 parent 4112af7 commit f612581

7 files changed

Lines changed: 54 additions & 4 deletions

File tree

Dockerfile.linux

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
77
COPY Makefile.lib.linux ffmpeg/Makefile.lib.linux
88
COPY Makefile.jni.linux ffmpeg/Makefile.jni.linux
99

10+
COPY Patch.linux ffmpeg/Patch.linux
11+
RUN patch -p0 < ffmpeg/Patch.linux
12+
1013
COPY build-linux.sh build-linux.sh
1114

1215
RUN chmod 700 build-linux.sh

Dockerfile.mingw64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
77
COPY Makefile.lib.mingw64 ffmpeg/Makefile.lib.mingw64
88
COPY Makefile.jni.mingw64 ffmpeg/Makefile.jni.mingw64
99

10-
COPY mingw64.patch ffmpeg/mingw64.patch
11-
RUN patch -p0 < ffmpeg/mingw64.patch
10+
COPY Patch.mingw64 ffmpeg/Patch.mingw64
11+
RUN patch -p0 < ffmpeg/Patch.mingw64
1212

1313
COPY build-mingw64.sh build-mingw64.sh
1414

Patch.linux

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/libavutil/dict.h b/libavutil/dict.h
2+
index 118f1f0..df4bd04 100644
3+
--- /ffmpeg/libavutil/dict.h
4+
+++ /ffmpeg/libavutil/dict.h
5+
@@ -83,7 +83,8 @@ typedef struct AVDictionaryEntry {
6+
char *value;
7+
} AVDictionaryEntry;
8+
9+
-typedef struct AVDictionary AVDictionary;
10+
+typedef struct AVDictionary {
11+
+} AVDictionary;
12+
13+
/**
14+
* Get a dictionary entry with matching key.

Patch.macos

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/libavutil/dict.h b/libavutil/dict.h
2+
index 118f1f0..df4bd04 100644
3+
--- ffmpeg/libavutil/dict.h
4+
+++ ffmpeg/libavutil/dict.h
5+
@@ -83,7 +83,8 @@ typedef struct AVDictionaryEntry {
6+
char *value;
7+
} AVDictionaryEntry;
8+
9+
-typedef struct AVDictionary AVDictionary;
10+
+typedef struct AVDictionary {
11+
+} AVDictionary;
12+
13+
/**
14+
* Get a dictionary entry with matching key.

mingw64.patch renamed to Patch.mingw64

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,19 @@ diff -u /usr/share/mingw-w64/include/servprov.h /usr/share/mingw-w64/include/ser
2424
}
2525
};
2626
}
27+
28+
29+
diff --git a/libavutil/dict.h b/libavutil/dict.h
30+
index 118f1f0..df4bd04 100644
31+
--- /ffmpeg/libavutil/dict.h
32+
+++ /ffmpeg/libavutil/dict.h
33+
@@ -83,7 +83,8 @@ typedef struct AVDictionaryEntry {
34+
char *value;
35+
} AVDictionaryEntry;
36+
37+
-typedef struct AVDictionary AVDictionary;
38+
+typedef struct AVDictionary {
39+
+} AVDictionary;
40+
41+
/**
42+
* Get a dictionary entry with matching key.

build-macos.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ rm -fR ffmpeg
66
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
77

88
cp Makefile.lib.macos ffmpeg/Makefile.lib.macos
9-
109
cp Makefile.jni.macos ffmpeg/Makefile.jni.macos
1110

11+
cp Patch.macos ffmpeg/Patch.macos
12+
patch -p0 < ffmpeg/Patch.macos
13+
1214
cd ffmpeg
1315

1416
make -f Makefile.lib.macos ffmpeg

ffmpeg4java.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ typedef struct AVDictionaryEntry {
852852
char *value;
853853
} AVDictionaryEntry;
854854

855-
typedef struct AVDictionary {} AVDictionary;
855+
typedef struct AVDictionary {
856+
} AVDictionary;
856857

857858
/**
858859
* Get a dictionary entry with matching key.

0 commit comments

Comments
 (0)