]> git.plutz.net Git - rawnet/commitdiff
avoid transcoding of broken videos
authorPaul Hänsch <paul@plutz.net>
Wed, 3 Nov 2021 09:01:39 +0000 (10:01 +0100)
committerPaul Hänsch <paul@plutz.net>
Wed, 3 Nov 2021 09:01:39 +0000 (10:01 +0100)
transcoding.sh

index 70e6be31b10067eae0be0d55a6deab21eb582efa..e62eb8c82ae2f23605a0ea714d65c9538bb89e20 100755 (executable)
@@ -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")"