From 29da441efa7c3d5364548d5af0b4747ddfc7da3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 3 Nov 2021 10:01:39 +0100 Subject: [PATCH] avoid transcoding of broken videos --- transcoding.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transcoding.sh b/transcoding.sh index 70e6be3..e62eb8c 100755 --- a/transcoding.sh +++ b/transcoding.sh @@ -69,6 +69,8 @@ transcode_run(){ width="${meta#*width=}"; width="${width%%${BR}*}" height="${meta#*height=}"; height="${height%%${BR}*}" + [ "$width" -a "$height" ] || return 1 + transcode_resolutions "$width" "$height" file="$(printf %s "$file" |sed "s;';'\\\\'';g")" -- 2.39.2