From 4e72fb88d8911901c21cd9c6894865fe92af2306 Mon Sep 17 00:00:00 2001 From: z-khan Date: Mon, 3 Feb 2025 23:59:14 +1100 Subject: [PATCH] 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. --- scripts/build-deps | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build-deps b/scripts/build-deps index de4a6e547..9cc795305 100755 --- a/scripts/build-deps +++ b/scripts/build-deps @@ -13,6 +13,9 @@ if [[ -e "$PYAV_LIBRARY_PREFIX/bin/ffmpeg" ]]; then exit 0 fi +mkdir -p "$PYAV_LIBRARY_ROOT" +mkdir -p "$PYAV_LIBRARY_PREFIX" + # Add CUDA support if available CONFFLAGS_NVIDIA="" if [[ -e /usr/local/cuda ]]; then @@ -38,12 +41,8 @@ else echo " Building without NVIDIA NVENC/NVDEC support" fi - -mkdir -p "$PYAV_LIBRARY_ROOT" -mkdir -p "$PYAV_LIBRARY_PREFIX" cd "$PYAV_LIBRARY_ROOT" - # Download and expand the source. if [[ ! -d $PYAV_LIBRARY ]]; then url="https://ffmpeg.org/releases/$PYAV_LIBRARY.tar.gz"