fate: fix non-standard use of bc
Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5b60c29339
commit
61a187b081
@ -25,7 +25,7 @@ do_tiny_psnr(){
|
||||
val=$(expr "$psnr" : ".*$3: *\([0-9.]*\)")
|
||||
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
|
||||
size2=$(expr "$psnr" : '.*bytes:[ 0-9]*/ *\([0-9]*\)')
|
||||
res=$(echo "$val $4 $5" | bc)
|
||||
res=$(echo "if ($val $4 $5) 1" | bc)
|
||||
if [ "$res" != 1 ] || [ $size1 != $size2 ]; then
|
||||
echo "$psnr"
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user