Skip to content

Commit 03b8a19

Browse files
author
lzj
committed
3.4.2封版
1 parent 968d65b commit 03b8a19

File tree

7,691 files changed

+27
-2176856
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,691 files changed

+27
-2176856
lines changed

3.4.2/FFmpeg-iOS/include/libavutil/avconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#ifndef AVUTIL_AVCONFIG_H
33
#define AVUTIL_AVCONFIG_H
44
#define AV_HAVE_BIGENDIAN 0
5-
#define AV_HAVE_FAST_UNALIGNED 1
5+
#define AV_HAVE_FAST_UNALIGNED 0
66
#endif /* AVUTIL_AVCONFIG_H */

3.4.2/build-fdk-aac-iOS.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
CONFIGURE_FLAGS="--enable-static --with-pic=yes --disable-shared"
55

6-
ARCHS="arm64 x86_64 i386 armv7 armv7s"
6+
ARCHS="arm64 armv7 x86_64 i386"
77

88
# directories
99
SOURCE="fdk-aac-0.1.6"

3.4.2/build-ffmpeg-iOS.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
#armv7xcode9.1,
2+
#armv7 xcode9.1,
33
#sudo xcode-select -switch pathToXcode9.1/Contents/Developer
44
#xcode-select --print-path
55

@@ -12,19 +12,20 @@ SOURCE="ffmpeg-$FF_VERSION"
1212
#输出路径
1313
FAT="FFmpeg-iOS"
1414

15-
SCRATCH=`pwd`/"scratch"
16-
THIN=`pwd`/"thin"
15+
SCRATCH=`pwd`/"scratch-ffmpeg"
16+
THIN=`pwd`/"thin-ffmpeg"
1717
#编译之前需要删除临时缓存文件夹,防止和之前编译的或fdk-aac冲突
1818
rm -rf "$SCRATCH"
1919
rm -rf "$THIN"
20+
rm -rf "$FAT"
21+
rm -rf "ffbuild"
2022

2123
X264=`pwd`/x264-iOS #H.264编码器
24+
OPENCORE_AMR=`pwd`/opencore-amr-iOS
2225
#FDK_AAC=`pwd`/fdk-aac-ios #AAC第三方解码库
2326
#FREETYPE=`pwd`/freetype-iOS #字体引擎库
24-
#FREETYPE=`pwd`/freetype-iOS #opencore-amr-0.1.5
25-
OPENCORE_AMR=`pwd`/opencore-amr-iOS
2627

27-
CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-programs --disable-ffplay --disable-doc --enable-pic --enable-static --disable-shared --disable-asm"
28+
CONFIGURE_FLAGS="--enable-cross-compile --disable-stripping --disable-debug --disable-programs --disable-ffplay --disable-doc --enable-pic --enable-static --disable-shared --disable-asm"
2829

2930
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-encoders --disable-decoders \
3031
--enable-demuxers --disable-muxers --disable-parsers --disable-filters \
@@ -54,7 +55,7 @@ then
5455
CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb"
5556
fi
5657

57-
ARCHS="armv7 armv7s arm64 x86_64"
58+
ARCHS="arm64 armv7 armv7s x86_64 i386"
5859
#ARCHS="arm64"
5960

6061
COMPILE="y"
@@ -158,6 +159,7 @@ then
158159
then
159160
CFLAGS="$CFLAGS -I$OPENCORE_AMR/include"
160161
LDFLAGS="$LDFLAGS -L$OPENCORE_AMR/lib"
162+
echo "$LDFLAGS"
161163
fi
162164

163165
TMPDIR=${TMPDIR/%\/} $CWD/$SOURCE/configure \

3.4.2/build-opencore-amr-iOS.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ DEST="${CURRENTPATH}/${LIBSRCNAME}-iOS"
99
mkdir -p $DEST
1010

1111
DEVELOPER=`xcode-select -print-path`
12-
ARCHS="i386 x86_64 armv7 armv7s arm64"
12+
ARCHS="arm64 armv7 armv7s x86_64 i386"
1313
LIBS="libopencore-amrnb.a libopencore-amrwb.a"
1414

15+
rm -rf "$DEST"
1516
tar zxvf ${LIBSRCNAME}-${VERSION}.tar.gz -C "${CURRENTPATH}"
1617
cd "${CURRENTPATH}/${LIBSRCNAME}-${VERSION}"
1718

3.4.2/build-x264-iOS.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
CONFIGURE_FLAGS="--enable-static --enable-pic --disable-cli"
66

7-
ARCHS="arm64 x86_64 i386 armv7 armv7s"
7+
ARCHS="arm64 armv7 armv7s x86_64 i386"
8+
#ARCHS="arm64"
89

910
# directories
1011
SOURCE="x264"
@@ -17,6 +18,10 @@ THIN=`pwd`/"thin-x264"
1718
COMPILE="y"
1819
LIPO="y"
1920

21+
rm -rf "$SCRATCH"
22+
rm -rf "$THIN"
23+
rm -rf "$FAT"
24+
2025
if [ "$*" ]
2126
then
2227
if [ "$*" = "lipo" ]
@@ -42,7 +47,7 @@ then
4247
mkdir -p "$SCRATCH/$ARCH"
4348
cd "$SCRATCH/$ARCH"
4449
CFLAGS="-arch $ARCH"
45-
ASFLAGS=
50+
ASFLAGS=""
4651

4752
if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]
4853
then
@@ -61,13 +66,13 @@ then
6166
if [ $ARCH = "arm64" ]
6267
then
6368
HOST="--host=aarch64-apple-darwin"
64-
XARCH="-arch aarch64"
69+
XARCH="-arch aarch64"
6570
else
6671
HOST="--host=arm-apple-darwin"
67-
XARCH="-arch arm"
72+
XARCH="-arch arm"
6873
fi
69-
CFLAGS="$CFLAGS -mios-version-min=8.0 -fembed-bitcode"
70-
ASFLAGS="$CFLAGS"
74+
CFLAGS="$CFLAGS -mios-version-min=8.0 -fembed-bitcode"
75+
ASFLAGS="$CFLAGS"
7176
fi
7277

7378
XCRUN_SDK=`echo $PLATFORM | tr '[:upper:]' '[:lower:]'`
@@ -109,4 +114,7 @@ then
109114

110115
cd $CWD
111116
cp -rf $THIN/$1/include $FAT
117+
rm -rf $SCRATCH
118+
rm -rf $THIN
119+
echo "building fat binaries successed"
112120
fi

3.4.2/ffmpeg-3.4.2/.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

3.4.2/ffmpeg-3.4.2/.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

3.4.2/ffmpeg-3.4.2/CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)