diff options
author | Mattias Andrée <maandree@kth.se> | 2024-05-22 20:48:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-05-22 20:48:04 +0200 |
commit | 8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e (patch) | |
tree | c6a0ea3e5c24a5ea6db80627d9e65a7e27d382a2 /ffmpeg | |
parent | Fix bug in DYNAMIC_ADDRESSES for ssh (diff) | |
download | dotfiles-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 'ffmpeg')
-rwxr-xr-x | ffmpeg/resize-and-transcode | 2 |
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") |