Commit 61a187b0 authored by Måns Rullgård's avatar Måns Rullgård

fate: fix non-standard use of bc

Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5b60c293
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment