]> git.plutz.net Git - rawnet/blobdiff - transcoding.sh
avoid transcoding of broken videos
[rawnet] / 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")"