mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
Remove unnecessary variable indirection.
Originally committed as revision 7522 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f32f5122ce
commit
7507022d4d
@ -116,33 +116,31 @@ FFMPEG_OPTS="-y -flags +bitexact -dct fastint -idct simple"
|
|||||||
|
|
||||||
do_ffmpeg()
|
do_ffmpeg()
|
||||||
{
|
{
|
||||||
f="$1"
|
|
||||||
shift
|
shift
|
||||||
echo $ffmpeg $FFMPEG_OPTS $*
|
echo $ffmpeg $FFMPEG_OPTS $*
|
||||||
$ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$
|
$ffmpeg $FFMPEG_OPTS -benchmark $* > $bench 2> /tmp/ffmpeg$$
|
||||||
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true
|
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true
|
||||||
rm -f /tmp/ffmpeg$$
|
rm -f /tmp/ffmpeg$$
|
||||||
do_md5sum $f >> $logfile
|
do_md5sum $1 >> $logfile
|
||||||
if [ $f = $raw_dst ] ; then
|
if [ $1 = $raw_dst ] ; then
|
||||||
$tiny_psnr $f $raw_ref >> $logfile
|
$tiny_psnr $1 $raw_ref >> $logfile
|
||||||
elif [ $f = $pcm_dst ] ; then
|
elif [ $1 = $pcm_dst ] ; then
|
||||||
$tiny_psnr $f $pcm_ref 2 >> $logfile
|
$tiny_psnr $1 $pcm_ref 2 >> $logfile
|
||||||
else
|
else
|
||||||
wc -c $f >> $logfile
|
wc -c $1 >> $logfile
|
||||||
fi
|
fi
|
||||||
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
|
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
|
||||||
echo `cat $bench2` $f >> $benchfile
|
echo `cat $bench2` $1 >> $benchfile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_ffmpeg_crc()
|
do_ffmpeg_crc()
|
||||||
{
|
{
|
||||||
f="$1"
|
|
||||||
shift
|
shift
|
||||||
echo $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc
|
echo $ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc
|
||||||
$ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1
|
$ffmpeg $FFMPEG_OPTS $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1
|
||||||
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)" /tmp/ffmpeg$$ || true
|
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)" /tmp/ffmpeg$$ || true
|
||||||
rm -f /tmp/ffmpeg$$
|
rm -f /tmp/ffmpeg$$
|
||||||
echo "$f `cat $datadir/ffmpeg.crc`" >> $logfile
|
echo "$1 `cat $datadir/ffmpeg.crc`" >> $logfile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_ffmpeg_nocheck()
|
do_ffmpeg_nocheck()
|
||||||
@ -154,7 +152,7 @@ do_ffmpeg_nocheck()
|
|||||||
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true
|
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration|video:)" /tmp/ffmpeg$$ || true
|
||||||
rm -f /tmp/ffmpeg$$
|
rm -f /tmp/ffmpeg$$
|
||||||
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
|
expr "`cat $bench`" : '.*utime=\(.*s\)' > $bench2
|
||||||
echo `cat $bench2` $f >> $benchfile
|
echo `cat $bench2` $1 >> $benchfile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_video_decoding()
|
do_video_decoding()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user