Skip to content

Commit 6294e28

Browse files
z-khanWyattBlue
authored andcommitted
PYAV_LIBRARY_ROOT: make directory before change directory
$PYAV_LIBRARY_ROOT should be created before calling cd $PYAV_LIBRARY_ROOT if building with NVIDIA Codec support.
1 parent a961fd4 commit 6294e28

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/build-deps

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if [[ -e "$PYAV_LIBRARY_PREFIX/bin/ffmpeg" ]]; then
1313
exit 0
1414
fi
1515

16+
mkdir -p "$PYAV_LIBRARY_ROOT"
17+
mkdir -p "$PYAV_LIBRARY_PREFIX"
18+
1619
# Add CUDA support if available
1720
CONFFLAGS_NVIDIA=""
1821
if [[ -e /usr/local/cuda ]]; then
@@ -38,12 +41,8 @@ else
3841
echo " Building without NVIDIA NVENC/NVDEC support"
3942
fi
4043

41-
42-
mkdir -p "$PYAV_LIBRARY_ROOT"
43-
mkdir -p "$PYAV_LIBRARY_PREFIX"
4444
cd "$PYAV_LIBRARY_ROOT"
4545

46-
4746
# Download and expand the source.
4847
if [[ ! -d $PYAV_LIBRARY ]]; then
4948
url="https://ffmpeg.org/releases/$PYAV_LIBRARY.tar.gz"

0 commit comments

Comments
 (0)