[MPlayer-cvslog] r29669 - trunk/TOOLS/mencvcd.sh

diego subversion at mplayerhq.hu
Thu Sep 10 20:29:35 CEST 2009


Author: diego
Date: Thu Sep 10 20:29:34 2009
New Revision: 29669

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

Modified:
   trunk/TOOLS/mencvcd.sh

Modified: trunk/TOOLS/mencvcd.sh
==============================================================================
--- trunk/TOOLS/mencvcd.sh	Thu Sep 10 19:30:02 2009	(r29668)
+++ trunk/TOOLS/mencvcd.sh	Thu Sep 10 20:29:34 2009	(r29669)
@@ -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"


More information about the MPlayer-cvslog mailing list