mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 02:00:50 +00:00
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.]*\)")
|
val=$(expr "$psnr" : ".*$3: *\([0-9.]*\)")
|
||||||
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
|
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
|
||||||
size2=$(expr "$psnr" : '.*bytes:[ 0-9]*/ *\([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
|
if [ "$res" != 1 ] || [ $size1 != $size2 ]; then
|
||||||
echo "$psnr"
|
echo "$psnr"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user