regtest: place image sequence outputs in separate directories
[libav.git] / tests / lavf-regression.sh
index 3f4a677..6e489a6 100755 (executable)
@@ -27,12 +27,14 @@ do_streamed_images()
 
 do_image_formats()
 {
-    file=${outfile}lavf%02d.$1
+    outfile="$datadir/images/$1/"
+    mkdir -p "$outfile"
+    file=${outfile}%02d.$1
     $echov $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -flags +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file
     $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -flags +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file
-    do_md5sum ${outfile}lavf02.$1 >> $logfile
+    do_md5sum ${outfile}02.$1 >> $logfile
     do_ffmpeg_crc $file $3 -i $target_path/$file
-    wc -c ${outfile}lavf02.$1 >> $logfile
+    wc -c ${outfile}02.$1 >> $logfile
 }
 
 do_audio_only()