X-Git-Url: https://git.plutz.net/?p=rawnet;a=blobdiff_plain;f=transcoding.sh;h=e62eb8c82ae2f23605a0ea714d65c9538bb89e20;hp=70e6be31b10067eae0be0d55a6deab21eb582efa;hb=29da441efa7c3d5364548d5af0b4747ddfc7da3a;hpb=d5aa61e2acb0f6adb7bb62d71f47ca4a653d24e2 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")"