conditional use of sox for video

This commit is contained in:
Vincent Riquer 2013-04-30 13:07:30 +02:00
parent a0a0fdd37a
commit 6b3ac87c99

View File

@ -3,7 +3,17 @@ decodeFile() {
case "$mimetype" in
'video/'*)
extractAudio
if (( ${destinationnormalize["$destination"]}))\
|| (
[ -n "${destinationfrequency["$destination"]}" ]\
&& (( ${rate:-0} != ${destinationfrequency["$destination"]}))\
) || (
[ -n "${destinationchannels["$destination"]}" ]\
&& (( ${channels:-0} != ${destinationchannels["$destination"]} ))
)
then
sox_needed=1
fi
;;
'audio/mpeg')
if [[ ${destinationformat[$destination]} = mp3 ]] \