Skip to content

Commit b5492eb

Browse files
committed
Build and install nasm 2.13
1 parent 539849d commit b5492eb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

build_scripts/build_ffmpeg.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,17 @@ function build_one
153153

154154
if [ "$(uname)" == "Darwin" ]; then
155155
brew install yasm nasm
156-
else
157-
sudo apt-get install -y yasm nasm
156+
else
157+
# Install nasm >= 2.13 for libx264
158+
if [ ! -d "nasm-2.13.03" ]; then
159+
curl -LO 'http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz'
160+
tar -xf nasm-2.13.03.tar.xz
161+
fi
162+
pushd nasm-2.13.03
163+
./configure --prefix=/usr
164+
make
165+
sudo make install
166+
popd
158167
fi
159168

160169
if [ $ARCH == "native" ]

0 commit comments

Comments
 (0)