From 127d93f76d4487716cbb5e7bb96b107ed266b61b Mon Sep 17 00:00:00 2001 From: Adam Djellouli <37275728+djeada@users.noreply.github.com> Date: Wed, 3 Sep 2025 19:39:02 +0000 Subject: [PATCH] fix(make_short): replace TW with TARGET_WIDTH to avoid unbound variable; keep non-destructive left padding --- src/make_short.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/make_short.sh b/src/make_short.sh index bd9605a..3eb685f 100755 --- a/src/make_short.sh +++ b/src/make_short.sh @@ -240,7 +240,7 @@ esac # - scale to fit within (1080 - SAFE_LEFT) x 1920 preserving AR # - then pad to 1080x1920 with left offset SAFE_LEFT and vertical centering if (( SAFE_LEFT > 0 )); then - vf_chain+=("scale=${TW}:1920:force_original_aspect_ratio=decrease:force_divisible_by=2") + vf_chain+=("scale=${TARGET_WIDTH}:1920:force_original_aspect_ratio=decrease:force_divisible_by=2") vf_chain+=("pad=1080:1920:${SAFE_LEFT}:floor((oh-ih)/2)") fi