aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg/resize-and-transcode
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-16 23:13:58 +0200
committerMattias Andrée <maandree@kth.se>2024-06-16 23:13:58 +0200
commitec3cf242018a2311c66ad1202e6e3a5113c3f0f1 (patch)
tree774f1ddbe838d398e6cb60b5eaeb3090d5d2aa77 /ffmpeg/resize-and-transcode
parentFix printf usage (diff)
downloaddotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.gz
dotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.bz2
dotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.xz
do not use -- with stty; although stty(1posix) says -- shall behave as normal, it does not in the GNU implementation, and stty(1posix) specifically states that it is not necessary when restoring to a save configuration
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xffmpeg/resize-and-transcode2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg/resize-and-transcode b/ffmpeg/resize-and-transcode
index 2b7b962..cecad85 100755
--- a/ffmpeg/resize-and-transcode
+++ b/ffmpeg/resize-and-transcode
@@ -102,7 +102,7 @@ fi
ttysetting="$(stty -g)"
ffmpeg -i "$input" $scale $codec -c:a copy -- "$output"
ret=$?
-stty -- "$ttysetting"
+stty "$ttysetting"
if test $ret = 0; then
oldsize=$(stat -c '%s' -- "$input")