summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 8a1b145..d8adb16 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -100,7 +100,7 @@ fi
infile=$(perl -e 'print pop @ARGV' "$@")
[ -e "$infile" ] || exit1 "Input file missing!"
-filebase=$(echo "$infile" | perl -pe 's/\.[^.]*//')
+filebase=$(basename "$infile" | perl -pe 's/\.[^.]*//')
# fallback graphics title
title=${title:-$filebase}