mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
os x md5sum patch by (John Dalgliesh <johnd at defyne dot org>)
Originally committed as revision 2824 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
aab34ca0c5
commit
853d659d6f
@ -24,6 +24,7 @@ if [ "$1" = "mpeg4" ] ; then
|
|||||||
do_mpeg4=y
|
do_mpeg4=y
|
||||||
elif [ "$1" = "mpeg" ] ; then
|
elif [ "$1" = "mpeg" ] ; then
|
||||||
do_mpeg=y
|
do_mpeg=y
|
||||||
|
do_mpeg2=y
|
||||||
elif [ "$1" = "ac3" ] ; then
|
elif [ "$1" = "ac3" ] ; then
|
||||||
do_ac3=y
|
do_ac3=y
|
||||||
elif [ "$1" = "libavtest" ] ; then
|
elif [ "$1" = "libavtest" ] ; then
|
||||||
@ -73,6 +74,13 @@ raw_dst="$datadir/out.yuv"
|
|||||||
raw_ref="$datadir/ref.yuv"
|
raw_ref="$datadir/ref.yuv"
|
||||||
pcm_src="asynth1.sw"
|
pcm_src="asynth1.sw"
|
||||||
pcm_dst="$datadir/out.wav"
|
pcm_dst="$datadir/out.wav"
|
||||||
|
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
|
||||||
|
do_md5sum() { md5sum -b $1; }
|
||||||
|
elif [ -x /sbin/md5 ]; then
|
||||||
|
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
|
||||||
|
else
|
||||||
|
do_md5sum() { echo No md5sum program found; }
|
||||||
|
fi
|
||||||
|
|
||||||
# create the data directory if it does not exists
|
# create the data directory if it does not exists
|
||||||
mkdir -p $datadir
|
mkdir -p $datadir
|
||||||
@ -85,7 +93,7 @@ do_ffmpeg()
|
|||||||
$ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
|
$ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
|
||||||
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
|
egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
|
||||||
rm -f /tmp/ffmpeg$$
|
rm -f /tmp/ffmpeg$$
|
||||||
md5sum -b $f >> $logfile
|
do_md5sum $f >> $logfile
|
||||||
if [ $f = $raw_dst ] ; then
|
if [ $f = $raw_dst ] ; then
|
||||||
$tiny_psnr $f $raw_ref >> $logfile
|
$tiny_psnr $f $raw_ref >> $logfile
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user