mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01: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:
parent
86ff541253
commit
37677802e5
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user