From 8ab4a5a0851f58c0e3d62044c3542d1eafa50e2e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 22 May 2024 20:48:04 +0200 Subject: ffmpeg/resize-and-transcode: restore tty settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- ffmpeg/resize-and-transcode | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v1.2.3-70-g09d2