Skip to content

Commit c2fb8af

Browse files
committed
Use libx264 snapshot version
1 parent 7b66ac8 commit c2fb8af

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build_scripts/build_ffmpeg.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ else
7676
echo "Using existing `pwd`/yasm-${YASM_VERSION}"
7777
fi
7878

79-
if [ ! -d "x264" ]; then
80-
echo "Cloning x264"
81-
git clone --depth=1 git://git.videolan.org/x264.git x264
79+
80+
LIBX264_VERSION="snapshot-20171130-2245"
81+
if [ ! -d "x264-$LIBX264_VERSION" ]; then
82+
echo "Downloading x264-$LIBX264_VERSION"
83+
curl -O "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-$LIBX264_VERSION.tar.bz2"
84+
tar -xf "x264-$LIBX264_VERSION.tar.bz2"
8285
else
83-
echo "Using existing `pwd`/x264"
86+
echo "Using existing `pwd`/x264-$LIBX264_VERSION"
8487
fi
8588

8689
OPUS_VERSION="1.1.5"
@@ -228,7 +231,7 @@ export STRIP=${CROSS_PREFIX}strip
228231
export PATH="$PATH:$PREFIX/bin/"
229232

230233
if [ "$FLAVOR" = "full" ]; then
231-
pushd x264
234+
pushd x264-$LIBX264_VERSION
232235
./configure \
233236
--cross-prefix=$CROSS_PREFIX \
234237
--sysroot=$SYSROOT \

0 commit comments

Comments
 (0)