aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-05-22 20:48:04 +0200
committerMattias Andrée <maandree@kth.se>2024-05-22 20:48:04 +0200
commit8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e (patch)
treec6a0ea3e5c24a5ea6db80627d9e65a7e27d382a2
parentFix bug in DYNAMIC_ADDRESSES for ssh (diff)
downloaddotfiles-8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e.tar.gz
dotfiles-8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e.tar.bz2
dotfiles-8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e.tar.xz
ffmpeg/resize-and-transcode: restore tty settings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xffmpeg/resize-and-transcode2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg/resize-and-transcode b/ffmpeg/resize-and-transcode
index f3fe017..a8d2001 100755
--- a/ffmpeg/resize-and-transcode
+++ b/ffmpeg/resize-and-transcode
@@ -99,8 +99,10 @@ if test -z "$scale" && test "$codec" = '-c:v copy'; then
exit 1
fi
+ttysetting="$(stty -g)"
ffmpeg -i "$input" $scale $codec -c:a copy -- "$output"
ret=$?
+stty -- "$ttysetting"
if test $ret = 0; then
oldsize=$(stat -c '%s' -- "$input")