Revision 16dd93ab tests/regression.sh

View differences:

tests/regression.sh
86 86
raw_ref="$datadir/ref.yuv"
87 87
pcm_src="asynth1.sw"
88 88
pcm_dst="$datadir/out.wav"
89
pcm_ref="$datadir/ref.wav"
89 90
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
90 91
    do_md5sum() { md5sum -b $1; }
91 92
elif [ -x /sbin/md5 ]; then
......
108 109
    do_md5sum $f >> $logfile
109 110
    if [ $f = $raw_dst ] ; then
110 111
        $tiny_psnr $f $raw_ref >> $logfile
112
    elif [ $f = $pcm_dst ] ; then
113
        $tiny_psnr $f $pcm_ref >> $logfile
111 114
    else
112 115
        wc -c $f >> $logfile
113 116
    fi
......
144 147
###################################
145 148
# generate reference for quality check
146 149
do_ffmpeg_nocheck $raw_ref -y -f pgmyuv -i $raw_src -an -f rawvideo $raw_ref
150
do_ffmpeg_nocheck $pcm_ref -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref
147 151

  
148 152
###################################
149 153
if [ -n "$do_mpeg" ] ; then

Also available in: Unified diff