From: Paul Hänsch Date: Wed, 3 Nov 2021 09:01:39 +0000 (+0100) Subject: avoid transcoding of broken videos X-Git-Url: https://git.plutz.net/?p=rawnet;a=commitdiff_plain;h=29da441efa7c3d5364548d5af0b4747ddfc7da3a avoid transcoding of broken videos --- 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")"