0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

Fix bashism: Use '$(( ))' syntax instead of '(( ))' for arithmetic expressions.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29669 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-09-10 18:29:34 +00:00
parent 86ff541253
commit 37677802e5

View File

@ -345,8 +345,8 @@ fi
[ $mp3 -eq 1 -a $abrset -eq 0 ] && abr=128
# audio sample rate in kHz
((a=$asr / 1000))
((b=$asr % 1000))
a=$(($a=$asr / 1000))
b=$(($b=$asr % 1000))
[ $b -le 9 ] && b="00$b00"
[ $b -le 99 ] && b="0$b00"
kasr="$a.$b"